⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 calendar.cs

📁 不错的人事管理系统
💻 CS
📖 第 1 页 / 共 3 页
字号:
			get
			{
				object local0;

				local0 = this.ViewState["CellSpacing"];
				if (local0 != null)
					return (Int32) local0;
				return 0;
			}
			set
			{
				if (value < -1)
					throw new ArgumentOutOfRangeException("value");
				this.ViewState["CellSpacing"]= value;
			}
		}

		public TableItemStyle DayHeaderStyle 
		{
			get
			{
				if (this.dayHeaderStyle == null) 
				{
					this.dayHeaderStyle = new TableItemStyle();
					if (this.IsTrackingViewState)
						this.dayHeaderStyle.TrackViewState();
				}
				return this.dayHeaderStyle;
			}
		}

		public DayNameFormat DayNameFormat 
		{
			get
			{
				object local0;

				local0 = this.ViewState["DayNameFormat"];
				if (local0 != null)
					return (DayNameFormat) local0;
				return (DayNameFormat)1;
			}
			set
			{
				if (value < (DayNameFormat)0 || value > (DayNameFormat)3)
					throw new ArgumentOutOfRangeException("value");
				this.ViewState["DayNameFormat"]= value;
			}
		}

		public TableItemStyle DayStyle 
		{
			get
			{
				if (this.dayStyle == null) 
				{
					this.dayStyle = new TableItemStyle();
					if (this.IsTrackingViewState)
						this.dayStyle.TrackViewState();
				}
				return this.dayStyle;
			}
		}

		public FirstDayOfWeek FirstDayOfWeek 
		{
			get
			{
				object local0;

				local0 = this.ViewState["FirstDayOfWeek"];
				if (local0 != null)
					return (FirstDayOfWeek) local0;
				return (FirstDayOfWeek)7;
			}
			set
			{
				if (value < (FirstDayOfWeek)0 || value > (FirstDayOfWeek)7)
					throw new ArgumentOutOfRangeException("value");
				this.ViewState["FirstDayOfWeek"]= value;
			}
		}

		public string NextMonthText 
		{
			get
			{
				object local0;

				local0 = this.ViewState["NextMonthText"];
				if (local0 != null)
					return (String) local0;
				return "&gt;";
			}
			set
			{
				this.ViewState["NextMonthText"]= value;
			}
		}

		public NextPrevFormat NextPrevFormat 
		{
			get
			{
				object local0;

				local0 = this.ViewState["NextPrevFormat"];
				if (local0 != null)
					return (NextPrevFormat) local0;
				return (NextPrevFormat)0;
			}
			set
			{
				if (value < (NextPrevFormat)0 || value > (NextPrevFormat)2)
					throw new ArgumentOutOfRangeException("value");
				this.ViewState["NextPrevFormat"]= value;
			}
		}

		public TableItemStyle NextPrevStyle 
		{
			get
			{
				if (this.nextPrevStyle == null) 
				{
					this.nextPrevStyle = new TableItemStyle();
					if (this.IsTrackingViewState)
						this.nextPrevStyle.TrackViewState();
				}
				return this.nextPrevStyle;
			}
		}

		public TableItemStyle OtherMonthDayStyle 
		{
			get
			{
				if (this.otherMonthDayStyle == null) 
				{
					this.otherMonthDayStyle = new TableItemStyle();
					if (this.IsTrackingViewState)
						this.otherMonthDayStyle.TrackViewState();
				}
				return this.otherMonthDayStyle;
			}
		}

		public string PrevMonthText 
		{
			get
			{
				object local0;

				local0 = this.ViewState["PrevMonthText"];
				if (local0 != null)
					return (String) local0;
				return "&lt;";
			}
			set
			{
				this.ViewState["PrevMonthText"]= value;
			}
		}

		public DateTime SelectedDate 
		{
			get
			{
//				if (this.SelectedDates.Count == 0)
//					return System.DateTime.MinValue;
//				return this.SelectedDates[0];
				throw new Exception("");
			}
			set
			{
				if (value== System.DateTime.MinValue) 
				{
//					this.SelectedDates.Clear();
					return;
				}
//				this.SelectedDates.SelectRange(value, value);
			}
		}

		public SelectedDatesCollection SelectedDates 
		{
			get
			{
				if (this.selectedDates == null) 
				{
					if (this.dateList == null)
						this.dateList = new ArrayList();
//					this.selectedDates = new SelectedDatesCollection(this.dateList);
				}
				return this.selectedDates;
			}
		}

		public TableItemStyle SelectedDayStyle 
		{
			get
			{
				if (this.selectedDayStyle == null) 
				{
					this.selectedDayStyle = new TableItemStyle();
					if (this.IsTrackingViewState)
						this.selectedDayStyle.TrackViewState();
				}
				return this.selectedDayStyle;
			}
		}

		public CalendarSelectionMode SelectionMode 
		{
			get
			{
				object local0;

				local0 = this.ViewState["SelectionMode"];
				if (local0 != null)
					return (CalendarSelectionMode) local0;
				return (CalendarSelectionMode)1;
			}
			set
			{
				if (value < (CalendarSelectionMode)0 || value > (CalendarSelectionMode)3)
					throw new ArgumentOutOfRangeException("value");
				this.ViewState["SelectionMode"]= value;
			}
		}

		public string SelectMonthText 
		{
			get
			{
				object local0;

				local0 = this.ViewState["SelectMonthText"];
				if (local0 != null)
					return (String) local0;
				return "&gt;&gt;";
			}
			set
			{
				this.ViewState["SelectMonthText"]= value;
			}
		}

		public TableItemStyle SelectorStyle 
		{
			get
			{
				if (this.selectorStyle == null) 
				{
					this.selectorStyle = new TableItemStyle();
					if (this.IsTrackingViewState)
						this.selectorStyle.TrackViewState();
				}
				return this.selectorStyle;
			}
		}

		public string SelectWeekText 
		{
			get
			{
				object local0;

				local0 = this.ViewState["SelectWeekText"];
				if (local0 != null)
					return (String) local0;
				return "&gt;";
			}
			set
			{
				this.ViewState["SelectWeekText"]= value;
			}
		}

		public bool ShowDayHeader 
		{
			get
			{
				object local0;

				local0 = this.ViewState["ShowDayHeader"];
				if (local0 != null)
					return (Boolean) local0;
				return true;
			}
			set
			{
				this.ViewState["ShowDayHeader"]= value;
			}
		}

		public bool ShowGridLines 
		{
			get
			{
				object local0;

				local0 = this.ViewState["ShowGridLines"];
				if (local0 != null)
					return (Boolean) local0;
				return false;
			}
			set
			{
				this.ViewState["ShowGridLines"]= value;
			}
		}

		public bool ShowNextPrevMonth 
		{
			get
			{
				object local0;

				local0 = this.ViewState["ShowNextPrevMonth"];
				if (local0 != null)
					return (Boolean) local0;
				return true;
			}
			set
			{
				this.ViewState["ShowNextPrevMonth"]= value;
			}
		}

		public bool ShowTitle 
		{
			get
			{
				object local0;

				local0 = this.ViewState["ShowTitle"];
				if (local0 != null)
					return (Boolean) local0;
				return true;
			}
			set
			{
				this.ViewState["ShowTitle"]= value;
			}
		}

		public TitleFormat TitleFormat 
		{
			get
			{
				object local0;

				local0 = this.ViewState["TitleFormat"];
				if (local0 != null)
					return (TitleFormat) local0;
				return (TitleFormat)1;
			}
			set
			{
				if (value < (TitleFormat)0 || value > (TitleFormat)1)
					throw new ArgumentOutOfRangeException("value");
				this.ViewState["TitleFormat"]= value;
			}
		}

		public TableItemStyle TitleStyle 
		{
			get
			{
				if (this.titleStyle == null) 
				{
					this.titleStyle = new TableItemStyle();
					if (this.IsTrackingViewState)
						this.titleStyle.TrackViewState();
				}
				return this.titleStyle;
			}
		}

		public TableItemStyle TodayDayStyle 
		{
			get
			{
				if (this.todayDayStyle == null) 
				{
					this.todayDayStyle = new TableItemStyle();
					if (this.IsTrackingViewState)
						this.todayDayStyle.TrackViewState();
				}
				return this.todayDayStyle;
			}
		}

		public DateTime TodaysDate 
		{
			get
			{
				object local0;

				local0 = this.ViewState["TodaysDate"];
				if (local0 != null)
					return (DateTime) local0;
				return DateTime.Today;
			}
			set
			{
				this.ViewState["TodaysDate"]= value.Date;
			}
		}

		public DateTime VisibleDate 
		{
			get
			{
				object local0;

				local0 = this.ViewState["VisibleDate"];
				if (local0 != null)
					return (DateTime) local0;
				return System.DateTime.MinValue;
			}
		}

		public TableItemStyle WeekendDayStyle 
		{
			get
			{
				if (this.weekendDayStyle == null) 
				{
					this.weekendDayStyle = new TableItemStyle();
					if (this.IsTrackingViewState)
						this.weekendDayStyle.TrackViewState();
				}
				return this.weekendDayStyle;
			}
		}

	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -