Esempio n. 1
0
        private void changePasswordToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmCreateNewUser NewUser = new FrmCreateNewUser("ChangePassword");

            NewUser.Font = this.Font;
            NewUser.ShowDialog();
        }
Esempio n. 2
0
 private void FrmLogin_Load(object sender, EventArgs e)
 {
     if (SqlCon.ConnectionString.Contains("master"))
     {
         FrmInitialSetup InitialSetup = new FrmInitialSetup();
         InitialSetup.Font      = this.Font;
         InitialSetup.BackColor = Color.LightBlue;
         InitialSetup.ShowDialog();
         FrmCreateNewUser NewUser = new FrmCreateNewUser("InitialSetup");
         NewUser.ShowDialog();
         MessageBox.Show("Please restart the applicaion to login.", "Message:", MessageBoxButtons.OK);
         this.Close();
     }
     if (SqlCon.ConnectionString == "")
     {
         Close();
     }
     this.BackColor           = Color.CadetBlue;
     PanLogin.BackColor       = Color.Ivory;
     LblUsername.Font         = new Font("Verdana", 10, FontStyle.Regular);
     LblPassword.Font         = new Font("Verdana", 10, FontStyle.Regular);
     BtnOk.Font               = new Font("Verdana", 10, FontStyle.Regular);
     BtnCancel.Font           = new Font("Verdana", 10, FontStyle.Regular);
     txtUsername.Font         = new Font("Verdana", 10, FontStyle.Regular);
     txtPassword.Font         = new Font("Verdana", 10, FontStyle.Regular);
     txtPassword.PasswordChar = '*';
 }