Ejemplo n.º 1
0
 /// <summary>
 /// Initialize a new instance of the PaletteMonthCalendarDoubleState class.
 /// </summary>
 /// <param name="redirect">Inheritence redirection instance.</param>
 /// <param name="needPaint">Delegate for notifying paint requests.</param>
 public PaletteMonthCalendarDoubleState(PaletteMonthCalendarRedirect redirect,
                                        NeedPaintHandler needPaint)
     : base(redirect, needPaint)
 {
     _paletteHeader    = new PaletteTriple(redirect.Header, needPaint);
     _paletteDay       = new PaletteTriple(redirect.Day, needPaint);
     _paletteDayOfWeek = new PaletteTriple(redirect.DayOfWeek, needPaint);
 }
 /// <summary>
 /// Initialize a new instance of the PaletteMonthCalendarState class.
 /// </summary>
 /// <param name="redirect">Inheritence redirection instance.</param>
 /// <param name="needPaint">Delegate for notifying paint requests.</param>
 public PaletteMonthCalendarState(PaletteMonthCalendarRedirect redirect,
                                  NeedPaintHandler needPaint)
 {
     _paletteDay = new PaletteTriple(redirect.Day, needPaint);
 }
 /// <summary>
 /// Initialize a new instance of the PaletteMonthCalendarState class.
 /// </summary>
 /// <param name="redirect">Inheritence redirection instance.</param>
 public PaletteMonthCalendarState(PaletteMonthCalendarRedirect redirect)
     : this(redirect, null)
 {
 }