private void butOK_Click(object sender, System.EventArgs e)
 {
     if (textDescription.Text == "")
     {
         MsgBox.Show(this, "Description cannot be blank.");
         return;
     }
     LabCur.Description = textDescription.Text;
     LabCur.Phone       = textPhone.Text;
     LabCur.Notes       = textNotes.Text;
     try{
         if (IsNew)
         {
             Laboratories.Insert(LabCur);
         }
         else
         {
             Laboratories.Update(LabCur);
         }
         LabTurnarounds.SetForLab(LabCur.LaboratoryNum, turnaroundList);
     }
     catch (ApplicationException ex) {
         MessageBox.Show(ex.Message);
         return;
     }
     DialogResult = DialogResult.OK;
 }
 private void butOK_Click(object sender, System.EventArgs e)
 {
     if (textDescription.Text == "")
     {
         MsgBox.Show(this, "Description cannot be blank.");
         return;
     }
     LabCur.Description   = textDescription.Text;
     LabCur.Phone         = textPhone.Text;
     LabCur.WirelessPhone = textWirelessPhone.Text;
     LabCur.Address       = textAddress.Text;
     LabCur.City          = textCity.Text;
     LabCur.State         = textState.Text;
     LabCur.Zip           = textZip.Text;
     LabCur.Email         = textEmail.Text;
     LabCur.Notes         = textNotes.Text;
     LabCur.Slip          = 0;
     LabCur.IsHidden      = checkIsHidden.Checked;
     if (comboSlip.SelectedIndex > 0)
     {
         LabCur.Slip = SlipList[comboSlip.SelectedIndex - 1].SheetDefNum;
     }
     try{
         if (IsNew)
         {
             Laboratories.Insert(LabCur);
         }
         else
         {
             Laboratories.Update(LabCur);
         }
         LabTurnarounds.SetForLab(LabCur.LaboratoryNum, turnaroundList);
     }
     catch (ApplicationException ex) {
         MessageBox.Show(ex.Message);
         return;
     }
     DialogResult = DialogResult.OK;
 }