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