Example #1
0
        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();
            }
        }
Example #2
0
        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();
 }
Example #4
0
 public Form_Home(Form_Welcome mainform)
 {
     this.mainForm   = mainform;
     this.loggedUser = Common.loggedUser;
     InitializeComponent();
 }