Пример #1
0
 private void pictureBox15_MouseClick(object sender, MouseEventArgs e)
 {
     if (member.type == "A")
     {
         Home_Admin_Exchanged_Client hh = new Home_Admin_Exchanged_Client();
         hh.giveMemberUserName(userName);
         hh.Show();
         this.Hide();
     }
     else
     {
         MessageBox.Show("Access denied");
     }
 }
Пример #2
0
 private void clientExchangebutton_Click(object sender, EventArgs e)
 {
     if (member.type == "A" || member.type == "M")
     {
         Home_Admin_Exchanged_Client hs = new Home_Admin_Exchanged_Client();
         hs.giveMemberUserName(userName);
         hs.Show();
         this.Hide();
     }
     else
     {
         MessageBox.Show("Access denied");
     }
 }