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