private void SignInButton_Click(object sender, EventArgs e)
 {
     if (isFormValid())
     {
         DBSQLServer db = new DBSQLServer(AppSetting.ConnectionString());
         bool        isLoginDetailsCorrect = Convert.ToBoolean(db.GetScalarValue("usp_UsersCheckLoginDetails", GetParameter()));
         if (isLoginDetailsCorrect)
         {
             GetLoggedInUserSetting();
             this.Hide();
             DashboardForm df = new DashboardForm();
             df.Show();
         }
         else
         {
             SMSMessageBox.ShowErrorMessage("User name/Password is not correct");
         }
     }
 }
Пример #2
0
        private void GenerateStudentId()
        {
            DBSQLServer db = new DBSQLServer(AppSetting.ConnectionString());

            StudentIdTextBox.Text = db.GetScalarValue("usp_StudentsGenerateNewStudentId").ToString();
        }
Пример #3
0
        private void GenerateEmployeeId()
        {
            DBSQLServer db = new DBSQLServer(AppSetting.ConnectionString());

            EmployeeIdTextBox.Text = db.GetScalarValue("usp_EmployeesGenerateNewEmployeeId").ToString();
        }