Пример #1
0
 private void MainMenu_Load(object sender, EventArgs e)
 {
     if (currentUser.password == "changeme")
     {
         UserChangePassword firstTime = new UserChangePassword(currentUser, "This is your first time logging in\nPlease change your password", 1);
         firstTime.ShowDialog();
     }
     this.Size     = new Size(1206, 712);
     this.Location = new Point((Screen.PrimaryScreen.WorkingArea.Width - this.Width) / 2,
                               (Screen.PrimaryScreen.WorkingArea.Height - this.Height) / 2);
 }
Пример #2
0
        private void btnChangePass_Click(object sender, EventArgs e)
        {
            UserChangePassword firstTime = new UserChangePassword(currentUser, "Enter new password below", 0);

            firstTime.ShowDialog();
        }