private void Ctrl_MouseClick(object sender, MouseEventArgs e) { if (sender == home_pnl) { Home_Admin hm = new Home_Admin(); 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(); } }
private void button8_Click(object sender, EventArgs e) { Home_Admin h = new Home_Admin(); h.giveMemberUserName(userName); h.Show(); this.Hide(); }
private void logInbutton_Click(object sender, EventArgs e) { try { if (loginUserName_metroTextBox.Text == "" || loginPassword_metroTextBox.Text == "") { MessageBox.Show("Wrong!!! Enter the information fully"); } else { Member member = account_BO.getMember(loginUserName_metroTextBox.Text); if (member.password == loginPassword_metroTextBox.Text) { Home_Admin hm = new Home_Admin(); hm.giveMemberUserName(loginUserName_metroTextBox.Text); hm.giveMemberUserName1(loginUserName_metroTextBox.Text); hm.Show(); this.Hide(); } else { MessageBox.Show("Incorect UserName or Password"); loginUserName_metroTextBox.Clear(); loginPassword_metroTextBox.Clear(); } } } catch { MessageBox.Show("Incorect UserName or Password"); loginUserName_metroTextBox.Clear(); loginPassword_metroTextBox.Clear(); } }
private void home_pnl_MouseClick(object sender, MouseEventArgs e) { Home_Admin ha = new Home_Admin(); ha.giveMemberUserName(userName); ha.Show(); this.Hide(); }
private void Ctrl_MouseClick(object sender, MouseEventArgs e) { if (totalmetroTextBox.Text == "" || totalmetroTextBox.Text=="0") { if (sender == home_pnl) { Home_Admin hm = new Home_Admin(); hm.giveMemberUserName(userName); hm.Show(); this.Hide(); } else if (sender == lock_pnl) { Home h = new Home(); h.Show(); this.Hide(); } else if (sender == exit_pnl) { Application.Exit(); } } else { MessageBox.Show("You can not go without check out it"); } if (sender == minimized_pnl) { right_option_timer.Stop(); this.WindowState = FormWindowState.Minimized; } }