Beispiel #1
0
        private void _UpdateScheduleList()
        {
            // create list of schedule in date range
            DateRangeCalendarWidget calendarWidget = _GetCalendarWidget();

            _exportedSchedule = ScheduleHelper.GetCurrentSchedulesByDates(calendarWidget.StartDate, calendarWidget.EndDate, true);
        }
Beispiel #2
0
        protected override void _CreateWidgets()
        {
            base._CreateWidgets();

            DateRangeCalendarWidget calendarWidget = new DateRangeCalendarWidget("CalendarWidgetCaption");

            calendarWidget.Initialize(this);
            this._EditableWidgetCollection.Insert(0, calendarWidget);
        }
Beispiel #3
0
        private void _UpdateGUI()
        {
            string message = "";

            if (0 == _exportedSchedule.Count)
            {
                DateRangeCalendarWidget calendarWidget = _GetCalendarWidget();
                message = string.Format((string)App.Current.FindResource("ExportNotFoundScheduleMessageFormat"),
                                        calendarWidget.StartDate.ToShortDateString(), calendarWidget.EndDate.ToShortDateString());
            }
            App.Current.MainWindow.StatusBar.SetStatus(this, message);

            buttonExport.IsEnabled = ((0 < _exportedSchedule.Count) && (-1 != comboboxProfile.SelectedIndex));
        }