Rename IApplication.Current to TopRunnable

Co-authored-by: tig <585482+tig@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-11-20 19:34:48 +00:00
parent 16b42e86fd
commit 4b975fd5b7
90 changed files with 916 additions and 820 deletions

View File

@@ -71,8 +71,8 @@ public class ApplicationStressTests
{
int tbNow = _tbCounter;
// Wait for Application.Current to be running to ensure timed events can be processed
while (Application.Current is null || Application.Current is { Running: false })
// Wait for Application.TopRunnable to be running to ensure timed events can be processed
while (Application.TopRunnable is null || Application.TopRunnable is { Running: false })
{
Thread.Sleep (1);
}

View File

@@ -126,7 +126,7 @@ public class ScenariosStressTests
void OnApplicationSessionBegun (object? sender, SessionTokenEventArgs e)
{
// Get a list of all subviews under Application.Current (and their subviews, etc.)
// Get a list of all subviews under Application.TopRunnable (and their subviews, etc.)
// and subscribe to their DrawComplete event
void SubscribeAllSubViews (View view)
{
@@ -140,7 +140,7 @@ public class ScenariosStressTests
}
}
SubscribeAllSubViews (Application.Current!);
SubscribeAllSubViews (Application.TopRunnable!);
}
// If the scenario doesn't close within the abort time, this will force it to quit