4 types derived from ApplicationContext
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\ApplicationServices\WindowsFormsApplicationBase.WinFormsAppContext.vb (1)
18Inherits ApplicationContext
System.Windows.Forms (1)
System\Windows\Forms\Application.ModalApplicationContext.cs (1)
10private class ModalApplicationContext : ApplicationContext
System.Windows.Forms.Tests (2)
System\Windows\Forms\ApplicationContextTests.cs (2)
210private class TestApplicationContext : ApplicationContext 397private class SubApplicationContext : ApplicationContext
14 instantiations of ApplicationContext
System.Windows.Forms (2)
System\Windows\Forms\Application.cs (2)
1302=> ThreadContext.FromCurrent().RunMessageLoop(msoloop.Main, new ApplicationContext()); 1309=> ThreadContext.FromCurrent().RunMessageLoop(msoloop.Main, new ApplicationContext(mainForm));
System.Windows.Forms.Tests (12)
System\Windows\Forms\ApplicationContextTests.cs (12)
11using ApplicationContext context = new(); 27using ApplicationContext context = new(mainForm); 37using ApplicationContext context = new() 52using ApplicationContext context = new() 69using ApplicationContext context = new(mainForm); 95using ApplicationContext context = new(mainForm) 132using ApplicationContext context = new(mainForm); 157using ApplicationContext context = new() 172using ApplicationContext context = new(mainForm); 186using ApplicationContext context = new(mainForm); 202using ApplicationContext context = new(); 288using ApplicationContext context = new();
28 references to ApplicationContext
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\ApplicationServices\WindowsFormsApplicationBase.vb (1)
260Public ReadOnly Property ApplicationContext() As ApplicationContext
System.Windows.Forms (10)
System\Windows\Forms\Application.cs (1)
1315public static void Run(ApplicationContext context)
System\Windows\Forms\Application.ThreadContext.cs (8)
97public ApplicationContext? ApplicationContext { get; private set; } 229internal unsafe void BeginModalMessageLoop(ApplicationContext? context) 252internal void DisableWindowsForModalLoop(bool onlyWinForms, ApplicationContext? context) 404internal void EnableWindowsForModalLoop(bool onlyWinForms, ApplicationContext? context) 419internal unsafe void EndModalMessageLoop(ApplicationContext? context) 454if (contexts[i].ApplicationContext is ApplicationContext context) 690internal void RunMessageLoop(msoloop reason, ApplicationContext? context) 697private void RunMessageLoopInner(msoloop reason, ApplicationContext? context)
System\Windows\Forms\ApplicationContext.cs (1)
35if (GetType() == typeof(ApplicationContext) || GetType() == Application.s_typeOfModalApplicationContext)
System.Windows.Forms.Tests (17)
System\Windows\Forms\ApplicationContextTests.cs (17)
11using ApplicationContext context = new(); 27using ApplicationContext context = new(mainForm); 37using ApplicationContext context = new() 52using ApplicationContext context = new() 69using ApplicationContext context = new(mainForm); 95using ApplicationContext context = new(mainForm) 132using ApplicationContext context = new(mainForm); 157using ApplicationContext context = new() 172using ApplicationContext context = new(mainForm); 186using ApplicationContext context = new(mainForm); 202using ApplicationContext context = new(); 288using ApplicationContext context = new(); 388foreach (var type in typeof(ApplicationContext).Assembly.GetTypes(). 389Where(type => type == typeof(ApplicationContext) || type.IsSubclassOf(typeof(ApplicationContext)))) 391Assert.True(type == typeof(ApplicationContext) || type == Application.s_typeOfModalApplicationContext, 392$"Type {type} is not one of [{typeof(ApplicationContext)}, {Application.s_typeOfModalApplicationContext}]. " +