Example #1
0
 /// <summary>Вход пользователя</summary>
 private void UserLoginAction()
 {
     //Считываем текущую строку соединения с базой данных
     LoginForm loginFrm = new LoginForm();
     DialogResult result = loginFrm.ShowDialog();
     if (result == System.Windows.Forms.DialogResult.OK)
     {
         /*
         userName = loginFrm.CurrentUserName;
         levelAccess = loginFrm.CurrentUserAccess;
         AMStudioUtils.user_id = loginFrm.CurrentUserID;
         toolStripStatusLabelUserName.Text = userName;
          */
     }
     else if (result == System.Windows.Forms.DialogResult.Abort)
         Application.Exit();
 }
Example #2
0
 private void toolStripButton1_Click(object sender, EventArgs e)
 {
     LoginForm loginForm = new LoginForm();
     loginForm.ShowDialog();
     if (loginForm.DialogResult == System.Windows.Forms.DialogResult.Yes)
     {
     }
 }