Ejemplo n.º 1
0
        private void butAddTime_Click(object sender, System.EventArgs e)
        {
            Schedules.ConvertFromDefault(SchedCurDate, SchedType, ProvNum);
            Schedule SchedCur = new Schedule();

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

            FormSB.IsNew = true;
            FormSB.ShowDialog();
            labelDefault.Visible = false;
            FillList();
        }
Ejemplo n.º 2
0
        private void listTimeBlocks_DoubleClick(object sender, System.EventArgs e)
        {
            if (listTimeBlocks.SelectedIndex == -1)
            {
                return;
            }
            int clickedIndex = listTimeBlocks.SelectedIndex;

            if (Schedules.ConvertFromDefault(SchedCurDate, SchedType, ProvNum))
            {
                FillList();
            }
            Schedule SchedCur            = SchedListDay[clickedIndex];
            FormScheduleBlockEdit FormSB = new FormScheduleBlockEdit(SchedCur);

            FormSB.ShowDialog();
            FillList();
        }