/// <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) { // Remember back reference to owning navigator. _edge = edge; Enabled = true; Visible = true; // Fix the type ProtectedType = fixedStyle; }
/// <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; }