1 write to s_forms
System.Windows.Forms (1)
System\Windows\Forms\Application.cs (1)
440
public static FormCollection OpenForms =>
s_forms
??= [];
13 references to s_forms
System.Windows.Forms (13)
System\Windows\Forms\Application.cs (13)
983
if (
s_forms
?.Count > 0)
985
HashSet<Form> processedForms = new(
s_forms
.Count);
986
int version =
s_forms
.AddVersion;
988
for (int i =
s_forms
.Count - 1; i > -1; i--)
990
Form? form =
s_forms
[i];
1010
if (version !=
s_forms
.AddVersion) // A new form was added, we need to iterate again
1012
version =
s_forms
.AddVersion;
1013
i =
s_forms
.Count;
1017
i = Math.Min(i,
s_forms
.Count); // Form can be removed from the collection, we need to check it
1022
while (
s_forms
.Count > 0)
1025
Form? form =
s_forms
[^1];
1033
s_forms
.RemoveAt(
s_forms
.Count - 1);