memo.cs

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

CS
176
字号
#region Using Directives

using System; 

#endregion

namespace Org.InteliIM.Applications.MiniTools.Memos
{
	/// <summary>
	/// Represents a memo.
	/// </summary>
	public class Memo
	{
		/// <summary>
		/// Initializes a new instance of the Memo class.
		/// </summary>
		public Memo()
		{
		}

		private string ownerId;

		/// <summary>
		/// Gets or sets the owner's id.
		/// </summary>
		public string OwnerId
		{
			get
			{
                if (this.ownerId == null)
                    this.ownerId = "";

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

		private DateTime date = DateTime.Now;

		/// <summary>
		/// Gets or sets the date.
		/// </summary>
		public DateTime Date
		{
			get
			{
				return this.date;
			}
			set
			{
				this.date = value;
			}
		}

		private string weather;

		/// <summary>
		/// Gets or sets the weather.
		/// </summary>
		public string Weather
		{
			get
			{
                if (this.weather == null)
                    this.weather = "";

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

		private string emotion;

		/// <summary>
		/// Gets or sets the emotion.
		/// </summary>
		public string Emotion
		{
			get
			{
                if (this.emotion == null)
                    this.emotion = "";

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

		private string content;

		/// <summary>
		/// Gets or sets the content.
		/// </summary>
		public string Content
		{
			get
			{
                if (this.content == null)
                    this.content = "";

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

		private bool isPublic = false;

		/// <summary>
		/// Gets or sets a value indicating the Memo is public or not.
		/// </summary>
		public bool IsPublic
		{
			get
			{
				return this.isPublic;
			}
			set
			{
				this.isPublic = value;
			}
		}

		private string backGroundImageSrc;

		/// <summary>
		/// Gets or sets the background image source.
		/// </summary>
		public string BackGroundImageSrc
		{
			get
			{
                if (this.backGroundImageSrc == null)
                    this.backGroundImageSrc = "";

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

		private string backGroundMusicSrc;

		/// <summary>
		/// Gets or sets the background music source.
		/// </summary>
		public string BackGroundMusicSrc
		{
			get
			{
                if (this.backGroundMusicSrc == null)
                    this.backGroundMusicSrc = "";

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

⌨️ 快捷键说明

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