예제 #1
0
 private void button1_Click_1(object sender, EventArgs e)
 {
     if (member.type == "A" || member.type == "M")
     {
         Home_Admin_Accounting hs = new Home_Admin_Accounting();
         hs.giveMemberUserName(userName);
         hs.Show();
         this.Hide();
     }
     else
     {
         MessageBox.Show("Access denied");
     }
 }
예제 #2
0
 private void Ctrl_MouseClick(object sender, MouseEventArgs e)
 {
     if (sender == home_pnl)
     {
         Home_Admin_Accounting hm = new Home_Admin_Accounting();
         hm.giveMemberUserName(userName);
         hm.Show();
         this.Hide();
     }
     else if (sender == lock_pnl)
     {
         Home h = new Home();
         h.Show();
         this.Hide();
     }
     else if (sender == minimized_pnl)
     {
         right_option_timer.Stop();
         this.WindowState = FormWindowState.Minimized;
     }
     else if (sender == exit_pnl)
     {
         Application.Exit();
     }
 }