예제 #1
0
파일: Form1.cs 프로젝트: ahmadmujtaba/BMC
 private void Form1_Load(object sender, EventArgs e)
 {
     foreach (MdiClient client in Controls.OfType<MdiClient>())
     {
         client.BackColor = Color.White;
         break;
     }
     FrmLogin frm = new FrmLogin();
     frm.ShowDialog();
 }
예제 #2
0
        private void btnUpdatePassword_Click(object sender, EventArgs e)
        {
            if ((lblMessage.Visible) || (lblConfirmPassword.Visible) || (lblOldPassword.Visible))
            {
                btnUpdatePassword.Enabled = true;
            }
            obj_mdlChangePassword.oldPassword = txtOldPassword.Text;
            obj_mdlChangePassword.newPassword = txtNewPassword.Text;
            obj_mdlChangePassword.userID = GlobalVar.g_UserID;
            if (obj_bllUserSecurity.changePassword(obj_mdlChangePassword) == true)
            {
                MessageBox.Show("Password successfully changed", "BMC ERP", MessageBoxButtons.OK, MessageBoxIcon.Information);
                FrmLogin login = new FrmLogin();
                login.Show();
                this.Hide();
            }

            else
            {
                MessageBox.Show("Wrong Password", "BMC ERP", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
        }
예제 #3
0
 private void frmMain1_Load(object sender, EventArgs e)
 {
     foreach (Control cont in Controls)
     {
         MdiClient client = cont as MdiClient;
         if (client != null)
         {
             client.BackColor = Color.White;
             break;
         }
     }
     FrmLogin frm = new FrmLogin();
     frm.ShowDialog();
     UserCustomizedMenu();
 }
예제 #4
0
 private void btnBackToLogin_Click(object sender, EventArgs e)
 {
     FrmLogin login = new FrmLogin();
     login.Show();
     this.Hide();
 }