internal static void AddForm(Form f)
{
lock (forms)
forms.Add(f);
// Signal that a Form has been added to this
// Application. Used by UIA to detect new Forms that
// need a11y support. This event may be fired even if
// the form has already been added, so clients should
// account for that when handling this signal.
if (FormAdded != null)
{
FormAdded(f, null);
}
}