Пример #1
0
 private void ContinueToMain()
 {
     frmNewMain f = new frmNewMain();
     f.Shown += MainShown;
     f.FormClosed += F_FormClosed;
     f.Show();
 }
Пример #2
0
 private void MainShown(object sender, EventArgs e)
 {
     this.Hide();
     frmNewMain f = (frmNewMain)sender;
     f.BringToFront();
 }