Beispiel #1
0
        private void bt1_Click(object sender, EventArgs e)
        {
            string message = string.Empty;
            if (chenUser(ref message))
            {

                MessageBox.Show(message);
                sm = new FrmAdmin();
                sm.Show();
                this.Hide();
            }
            else
            {
                MessageBox.Show(message);
            }
        }
Beispiel #2
0
 private void timer1_Tick(object sender, EventArgs e)
 {
     if (sm!=null)
     {
         if (!sm.Visible)
         {
             this.Show();
         }
     }
     else
     {
         sm = new FrmAdmin();
         sm.Hide();
         this.Show();
     }
 }