///////////////////////////////////////////////////////////////////////////////////////////
        ///////////////////////////////////////////////////////////////////////////////////////////
        ///////////////////////////////////////////////////////////////////////////////////////////
        /// <summary>
        /// Initialize calendar and all necessary event handlers
        /// </summary>
        private void _InitWidget()
        {
            _calendar = new ArcLogisticsCalendar();
            _calendar.SelectionMode = CalendarSelectionMode.SingleRange;
            _calendar.CalendarButtonStyle = null;
            _calendar.AllowDrop = false;
            _calendar.Style = (Style)App.Current.FindResource("calendarStyle");

            _calendar.SelectedDate = _calendar.DisplayDate = App.Current.CurrentDate;
            _dayStart = _dayEnd = _calendar.SelectedDate.Value;

            CalendarGrid.Children.Add(_calendar);
        }
 /// <summary>
 /// Initialize calendar and all necessary event handlers.
 /// </summary>
 protected void _InitCalendar()
 {
     _calendar = new ArcLogisticsCalendar();
     _calendar.SelectionMode = CalendarSelectionMode.SingleDate;
     CalendarGrid.Children.Add(_calendar);
     _calendar.AllowDrop = false;
     _calendar.CalendarButtonStyle = null;
     _calendar.Drop += new DragEventHandler(calendar_Drop);
 }