Beispiel #1
0
        /// <summary>
        /// Updates the months.
        /// </summary>
        private void UpdateMonthControls()
        {
            var description = ScheduleUtility.GetMonthDescription(this.Schedule);

            if (description.IsEvery)
            {
                this.EveryMonthRadioButton.IsChecked = true;
                if (string.IsNullOrWhiteSpace(description.PartialDescription))
                {
                    this.MonthMultiSelect.SelectAll();
                }
                else
                {
                    SelectMultiSelectValues(this.MonthMultiSelect, description);
                }
            }
            else
            {
                this.AtMonthRadioButton.IsChecked = true;
                if (!string.IsNullOrWhiteSpace(description.PartialDescription))
                {
                    SelectMultiSelectValues(this.MonthMultiSelect, description);
                }
            }
        }