コード例 #1
0
        /// <summary>
        /// Updates the days.
        /// </summary>
        private void UpdateDayControls()
        {
            var description = ScheduleUtility.GetDayDescription(this.Schedule);

            if (description.IsEvery)
            {
                this.EveryDayRadioButton.IsChecked = true;
                if (string.IsNullOrWhiteSpace(description.PartialDescription))
                {
                    this.DayMultiSelect.SelectAll();
                }
                else
                {
                    SelectMultiSelectValues(this.DayMultiSelect, description);
                }
            }
            else
            {
                this.AtDayRadioButton.IsChecked = true;
                if (!string.IsNullOrWhiteSpace(description.PartialDescription))
                {
                    SelectMultiSelectValues(this.DayMultiSelect, description);
                }
            }
        }