weatherreportentry.cs

来自「这个版本(InteliIM Open Kernel Release 2)是目前最」· CS 代码 · 共 80 行

CS
80
字号
#region Using Directives

using System; 

#endregion

namespace Org.InteliIM.Applications.MiniTools.Weather
{
	/// <summary>
	/// Represents a weather report entry.
	/// </summary>
	public class WeatherReportEntry
	{
		/// <summary>
		/// Initializes a new instance of the WeatherReportEntry class.
		/// </summary>
		public WeatherReportEntry()
		{
			
		}
		
		private DateTime forecastTime = DateTime.Now;
		
		/// <summary>
		/// Gets or sets the forecast time.
		/// </summary>
		public DateTime ForecastTime
		{
			get
			{
				return this.forecastTime;
			}
			set
			{
				this.forecastTime = value;
			}
		}
		
		private PlaceInfo place;
		
		/// <summary>
		/// Gets or sets the place.
		/// </summary>
		public PlaceInfo Place
		{
			get
			{
				if (this.place == null)
					this.place = new PlaceInfo();

				return this.place;
			}
			set
			{
				this.place = value;
			}
		}
		
		private WeatherInfo weather;
		
		/// <summary>
		/// Gets or sets the weather.
		/// </summary>
		public WeatherInfo Weather
		{
			get
			{
				if (this.weather == null)
					this.weather = new WeatherInfo();

				return this.weather;
			}
			set
			{
				this.weather = value;
			}
		}
	}
}

⌨️ 快捷键说明

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