Example #1
0
 private void butOK_Click(object sender, EventArgs e)
 {
     Schedules.SetForDay(SchedList, SchedCurDate);
     if (comboProv.SelectedIndex != -1 &&
         Prefs.UpdateInt("ScheduleProvUnassigned", Providers.List[comboProv.SelectedIndex].ProvNum))
     {
         DataValid.SetInvalid(InvalidTypes.Prefs);
     }
     DialogResult = DialogResult.OK;
 }
 private void butOK_Click(object sender, EventArgs e)
 {
     try {
         Schedules.SetForDay(SchedList, SchedCurDate);
     }
     catch (Exception ex) {
         MsgBox.Show(this, ex.Message);
         return;
     }
     if (comboProv.SelectedIndex != -1 &&
         Prefs.UpdateLong(PrefName.ScheduleProvUnassigned, ProviderC.ListShort[comboProv.SelectedIndex].ProvNum))
     {
         DataValid.SetInvalid(InvalidType.Prefs);
     }
     DialogResult = DialogResult.OK;
 }