Пример #1
0
 private void btnCancel_Click(object sender, System.EventArgs e)
 {
     this.Close();
     this.Dispose();
     MainForm frmLogin = new MainForm();
     frmLogin.ShowDialog();
 }
Пример #2
0
 static void Main()
 {
     MainForm frmLogin = new MainForm();
     frmLogin.ShowDialog();
 }
Пример #3
0
 private void btnCancel_Click(object sender, System.EventArgs e)
 {
     Globals.UserName = "";
     Globals.Password = "";
     this.Close();
     this.Dispose();
     MainForm frmLogin = new MainForm();
     frmLogin.ShowDialog();
 }