public RestrictedCalendar()
        {
            AllowWeekendSelection = true;
            NonSelectableDates    = new DateTimeCollection();

            // Configure the appearance of the calendar table.
            this.CellPadding   = 8;
            this.CellSpacing   = 8;
            this.BackColor     = Color.LightYellow;
            this.BorderStyle   = BorderStyle.Groove;
            this.BorderWidth   = Unit.Pixel(2);
            this.ShowGridLines = true;

            // Configure the font.
            this.Font.Name = "Verdana";
            this.Font.Size = FontUnit.XXSmall;

            // Set calendar settings.
            this.FirstDayOfWeek = FirstDayOfWeek.Monday;
            this.PrevMonthText  = "<--";
            this.NextMonthText  = "-->";

            // Select the current date by default.
            this.SelectedDate = DateTime.Today;
        }
Ejemplo n.º 2
0
		public RestrictedCalendar()
		{
			AllowWeekendSelection = true;
			NonSelectableDates = new DateTimeCollection();

			// Configure the appearance of the calendar table.
			this.CellPadding = 8;
			this.CellSpacing = 8;
			this.BackColor = Color.LightYellow;
			this.BorderStyle = BorderStyle.Groove;
			this.BorderWidth = Unit.Pixel(2);
			this.ShowGridLines = true;

			// Configure the font.
			this.Font.Name = "Verdana";
			this.Font.Size = FontUnit.XXSmall;

			// Set calendar settings.
			this.FirstDayOfWeek = FirstDayOfWeek.Monday;
			this.PrevMonthText = "<--";
			this.NextMonthText = "-->";

			// Select the current date by default.
			this.SelectedDate = DateTime.Today;
		}