/// <summary> /// Initializes defaults for MonthViewCalendar attributes. /// </summary> public MonthViewCalendar() { PreviousButtonText = "Previous"; PreviousButton = new ImageActionControlStyle( "~/Ewf/Images/Calendar/button_previous.gif" ) { AlternateText = PreviousButtonText }; CurrentDateButtonText = "Current Date"; CurrentDateButton = new ImageActionControlStyle( IsTwoWeekCalendar ? "~/Ewf/Images/Calendar/button_currentweek.gif" : "~/Ewf/Images/Calendar/button_currentmonth.gif" ) { AlternateText = CurrentDateButtonText }; NextButtonText = "Next"; NextButton = new ImageActionControlStyle( "~/Ewf/Images/Calendar/button_next.gif" ) { AlternateText = NextButtonText }; }
/// <summary> /// Initializes defaults for MonthViewCalendar attributes. /// </summary> public MonthViewCalendar() { PreviousButtonText = "Previous"; PreviousButton = new ImageActionControlStyle(new ExternalResourceInfo("~/Ewf/Images/Calendar/button_previous.gif")) { AlternateText = PreviousButtonText }; CurrentDateButtonText = "Current Date"; CurrentDateButton = new ImageActionControlStyle( IsTwoWeekCalendar ? new ExternalResourceInfo("~/Ewf/Images/Calendar/button_currentweek.gif") : new ExternalResourceInfo("~/Ewf/Images/Calendar/button_currentmonth.gif")) { AlternateText = CurrentDateButtonText }; NextButtonText = "Next"; NextButton = new ImageActionControlStyle(new ExternalResourceInfo("~/Ewf/Images/Calendar/button_next.gif")) { AlternateText = NextButtonText }; }