private void FileUtilityForm_Shown(object sender, EventArgs e) { FormShown?.Invoke(this, EventArgs.Empty); }
public static void Watch(Form form) { form.Shown += (sender, e) => { OpenForms++; FormShown?.Invoke(sender, e); }; form.Closed += (sender, e) => { OpenForms--; FormClosed?.Invoke(sender, e); }; }
private void MainForm_Shown(object sender, EventArgs e) { FormShown?.Invoke(this, EventArgs.Empty); }