Beispiel #1
0
        } // GetSchedule

        private void SchedulePattern_Load(object sender, EventArgs e)
        {
            ManualUpdate++;

            panelPlaceholder.Visible = false;
            for (int index = 0; index < ScheduleFragments.Length; index++)
            {
                var control = ScheduleFragments[index];
                control.UserControl.Location = panelPlaceholder.Location;
                control.UserControl.Size     = panelPlaceholder.Size;
                control.UserControl.Visible  = false;

                RadioButtons[index].Tag     = control.Kind;
                RadioButtons[index].Enabled = false;
            } // foreach

            // init DateTimePicker controls with a default date/time
            // once the RecordSchedule object is set, we will use the date/time specified in the schedule
            var oneTime = new RecordOneTime();

            oneTime.SetDefaultValues();
            dateTimeStartDate.Value = oneTime.StartDate;
            dateTimeStartTime.Value = oneTime.StartDate;

            ManualUpdate--;
        } // SchedulePattern_Load
Beispiel #2
0
        } // UpdateStartDate

        public void SetSchedule(RecordSchedule schedule)
        {
            Schedule = (RecordOneTime)schedule;
        } // SetSchedule