Beispiel #1
0
        private void butHoliday_Click(object sender, System.EventArgs e)
        {
            if (SchedListDay.Length == 1 &&
                SchedListDay[0].Status == SchedStatus.Holiday)
            {
                MessageBox.Show(Lan.g(this, "Day is already a Holiday."));
                return;
            }
            Schedules.SetAllDefault(SchedCurDate, SchedType, ProvNum);
            FillList();
            Schedule SchedCur = new Schedule();

            SchedCur.SchedDate = SchedCurDate;
            SchedCur.Status    = SchedStatus.Holiday;
            SchedCur.SchedType = SchedType;
            SchedCur.ProvNum   = ProvNum;
            FormScheduleBlockEdit FormSB = new FormScheduleBlockEdit(SchedCur);

            FormSB.IsNew = true;
            FormSB.ShowDialog();
            FillList();
        }
Beispiel #2
0
 private void butDefault_Click(object sender, System.EventArgs e)
 {
     Schedules.SetAllDefault(SchedCurDate, SchedType, ProvNum);
     FillList();
 }