示例#1
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     frmLogin login = new frmLogin();
     if (login.ShowDialog() == DialogResult.OK)
     {
         Application.Run(new frmMain());
     }
 }
示例#2
0
 private void btnCancle_Click(object sender, EventArgs e)
 {
     Form form = new frmLogin();
     form.Show();
     this.Close();
 }