private void but_logout_side_panel_Click(object sender, EventArgs e) { DialogResult result = Dialog_MyMessageBox.Show(Constant.MESSAGE_LOGOUT, 2); if (result == DialogResult.Yes) { this.Close(); loggedUser = null; mainForm.Show(); } }
public override bool Equals(Object obj) { if (obj == null || GetType() != obj.GetType()) { return(false); } if (this == obj) { return(true); } Entity_Staff staffObj = obj as Entity_Staff; return(staffName == staffObj.staffName && email == staffObj.email && phone == staffObj.phone); }
public Control_UserAccount() { this.loggedUser = Common.loggedUser; InitializeComponent(); }
public Form_Home(Form_Welcome mainform) { this.mainForm = mainform; this.loggedUser = Common.loggedUser; InitializeComponent(); }