Exemplo n.º 1
0
 private void InsertRecord()
 {
     using (new WaitCursor())
     {
         RecordToDispensation clsRecordToDispensation = new RecordToDispensation();
         if (VerifyData() == true)
         {
             SetData(clsRecordToDispensation);
             Boolean bSucess = new Boolean();
             bSucess = RecordToDispensationData.Add(clsRecordToDispensation);
             if (bSucess == true)
             {
                 GoBack_To_Grid();
             }
             else
             {
                 MessageBox.Show("Insert failed.", "Error");
             }
         }
     }
 }