예제 #1
0
        /// <summary>
        /// Initialize a new instance of the ButtonSpecCalendar class.
        /// </summary>
        /// <param name="month">Reference to owning view.</param>
        /// <param name="fixedStyle">Fixed style to use.</param>
        /// <param name="edge">Alignment edge.</param>
        public ButtonSpecCalendar(ViewDrawMonth month,
                                  PaletteButtonSpecStyle fixedStyle,
                                  RelativeEdgeAlign edge)
        {
            Debug.Assert(month != null);

            // Remember back reference to owning navigator.
            _month  = month;
            _edge   = edge;
            Enabled = true;
            Visible = true;

            // Fix the type
            ProtectedType = fixedStyle;
        }
예제 #2
0
 /// <summary>
 /// Initialize a new instance of the CalendarButtonSpecCollection class.
 /// </summary>
 /// <param name="owner">Reference to owning object.</param>
 public CalendarButtonSpecCollection(ViewDrawMonth owner)
     : base(owner)
 {
 }