Пример #1
0
 private void InsertRecord()
 {
     using (new WaitCursor())
     {
         Login clsLogin = new Login();
         if (VerifyData() == true)
         {
             SetData(clsLogin);
             Boolean bSucess = new Boolean();
             bSucess = LoginData.Add(clsLogin);
             if (bSucess == true)
             {
                 GoBack_To_Grid();
             }
             else
             {
                 MessageBox.Show("Insert failed.", "Error");
             }
         }
     }
 }