Esempio n. 1
0
 private void panel3_MouseClick_1(object sender, MouseEventArgs e)
 {
     if (member.type == "A")
     {
         Home_Admin_IncomeStatement hi = new Home_Admin_IncomeStatement();
         hi.giveMemberUserName(userName);
         hi.Show();
         this.Hide();
     }
     else
     {
         MessageBox.Show("Access denied");
     }
 }
Esempio n. 2
0
 private void incomeStatement_button_Click(object sender, EventArgs e)
 {
     if (member.type == "A" || member.type == "M")
     {
         Home_Admin_IncomeStatement hs = new Home_Admin_IncomeStatement();
         hs.giveMemberUserName(userName);
         hs.Show();
         this.Hide();
     }
     else
     {
         MessageBox.Show("Access denied");
     }
 }