Пример #1
0
 private void FileUtilityForm_Shown(object sender, EventArgs e)
 {
     FormShown?.Invoke(this, EventArgs.Empty);
 }
Пример #2
0
 public static void Watch(Form form)
 {
     form.Shown  += (sender, e) => { OpenForms++; FormShown?.Invoke(sender, e); };
     form.Closed += (sender, e) => { OpenForms--; FormClosed?.Invoke(sender, e); };
 }
Пример #3
0
 private void MainForm_Shown(object sender, EventArgs e)
 {
     FormShown?.Invoke(this, EventArgs.Empty);
 }