Beispiel #1
0
 private void butClearDay_Click(object sender, EventArgs e)
 {
     if (PrefC.HasClinicsEnabled)
     {
         string clincAbbr = (Clinics.ClinicNum == 0?Lan.g(this, "Headquarters"):Clinics.GetAbbr(Clinics.ClinicNum));
         if (MessageBox.Show(Lan.g(this, "Clear all blockouts for day for clinic: ") + clincAbbr + Lan.g(this, "?") + "\r\n"
                             + Lan.g(this, "(This may include blockouts not shown in the current appointment view)")
                             , Lan.g(this, "Clear Blockouts"), MessageBoxButtons.OKCancel) != DialogResult.OK)
         {
             return;
         }
         Schedules.ClearBlockoutsForClinic(Clinics.ClinicNum, DateSelected);               //currently selected clinic only, works for daily or weekly
         Schedules.BlockoutLogHelper(BlockoutAction.Clear, dateTime: DateSelected, clinicNum: Clinics.ClinicNum);
     }
     else
     {
         if (!MsgBox.Show(this, true, "Clear all blockouts for day? (This may include blockouts not shown in the current appointment view)"))
         {
             return;
         }
         Schedules.ClearBlockoutsForDay(DateSelected);                //works for daily or weekly
         Schedules.BlockoutLogHelper(BlockoutAction.Clear, dateTime: DateSelected);
     }
     Close();
 }
 private void butClearDay_Click(object sender, EventArgs e)
 {
     if (!MsgBox.Show(this, true, "Clear all blockouts for day? (This may include blockouts not shown in the current appointment view)"))
     {
         return;
     }
     Schedules.ClearBlockoutsForDay(DateSelected);            //works for daily or weekly
     Close();
 }
 private void butClearDay_Click(object sender, EventArgs e)
 {
     if (!MsgBox.Show(this, true, "Clear all blockouts for day?"))
     {
         return;
     }
     Schedules.ClearBlockoutsForDay(DateSelected);            //works for daily or weekly
     Close();
 }