示例#1
0
        /// <summary>
        /// Logout button Click event
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btn_logout_Click(object sender, EventArgs e)
        {
            DialogResult result = COM_MESSAGE.informationMessage("Do you realy want to Log out!!! you will lost all unsaved data", "Confirmation");

            if (result == DialogResult.Yes)
            {
                IS_LOGOUT = true;
                this.Close();
                frm_Login LoginForm = new frm_Login();
                LoginForm.Show();
            }
        }
示例#2
0
        private void lbl_changePass_Click(object sender, EventArgs e)
        {
            FrmChangePassWd changePass = new FrmChangePassWd(lbl_loggedUser.Text);

            changePass.ShowDialog();

            if (FrmChangePassWd.IS_SUCCESS_MESSAGE)
            {
                this.Close();
                frm_Login login = new frm_Login();
                login.Show();
            }
        }