private void prepareBill_button_Click(object sender, EventArgs e) { if (member.type == "A" || member.type == "M") { Home_Admin_Bill hb = new Home_Admin_Bill(); hb.giveMemberUserName(userName); hb.Show(); this.Hide(); } else { MessageBox.Show("Access denied"); } }
private void remove_client_pnl_MouseClick(object sender, MouseEventArgs e) { if (member.type == "A" || member.type=="M") { Home_Admin_Bill hb = new Home_Admin_Bill(); hb.giveMemberUserName(userName); hb.Show(); this.Hide(); } else { MessageBox.Show("Access denied"); } }