/// <summary>
        /// Gets TimeWindow property and update control's layout accordingly.
        /// </summary>
        /// <param name="tw"></param>
        protected void _TimeWindowToControlState(TimeWindow tw)
        {
            if (tw != null)
                if (tw.IsWideOpen)
                    _IsWideopen.IsChecked = true;

            _ToText.Time = tw.To;
            _ToText.TimeSpan = _ToText.Time;
            _FromText.Time = tw.From;
            _FromText.TimeSpan = _FromText.Time;
            _CellLabel.Text = tw.ToString();
        }
Exemplo n.º 2
0
 /// <summary>
 /// Add Time window
 /// </summary>
 /// <param name="timeWindow">Source time window</param>
 /// <param name="second">Is second time window</param>
 /// <param name="inlines">Inlines to fill</param>
 /// <param name="bolded">Is need to be bold inline</param>
 private static void _AddTimeWindow(TimeWindow timeWindow, bool second, InlineCollection inlines, bool bolded)
 {
     string value = timeWindow.ToString();
     string timewindowCaption = _timewindowCaption;
     if (second)
         timewindowCaption += "2";
     _AddLine(timewindowCaption, value, inlines, bolded);
 }