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

📄 photo.cs

📁 这是一个小型的相片管理器
💻 CS
字号:


using System;

namespace VirtualPhotoOrganizer.Photo
{
	/// <summary>
	/// the class defining a photo's properties
	/// </summary>
	internal class Photo : IComparable
	{
		// the properties
		private string _Path;
		private string _Thumbnail;
		private string _Title;
		private string _Description;
		private string _TimeTaken;
		private object _Tag;

		public Photo(string path, string thumbnail, string title, string description, string timeTaken) {
			_Path = path;
			_Thumbnail = thumbnail;
			_Title = title;
			_Description = description;
			_TimeTaken = timeTaken;
			_Tag = null;
		}

		#region accessors
		public string Path {
			get { return _Path; }
			set { _Path = value; }
		}
		public string Thumbnail {
			get { return _Thumbnail; }
			set { _Thumbnail = value; }
		}
		public string Title {
			get { return _Title; }
			set { _Title = value; }
		}
		public string Description {
			get { return _Description; }
			set { _Description = value; }
		}
		public string TimeTaken {
			get { return _TimeTaken; }
			set { _TimeTaken = value; }
		}
		public object Tag {
			get { return _Tag; }
			set { _Tag = value; }
		}
		#endregion

		#region IComparable Member

		public int CompareTo(object obj) {
			Photo p = (Photo) obj;
			return _Title.CompareTo(p.Title);
		}

		#endregion
	}
}

⌨️ 快捷键说明

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