Exemplo n.º 1
0
// コンストラクタ

		/// <summary>
		/// 年の日記表示のためのアクションのインスタンスを開始します。
		/// </summary>
		public YearDiaryViewYear(YearDiary model, AbsPath path) : base(model, path){
			myPath = myModel.BasePath;
		}
Exemplo n.º 2
0
// コンストラクタ

		/// <summary>
		/// 最近の日記表示のためのアクションのインスタンスを開始します。
		/// </summary>
		public YearDiaryViewMonth(YearDiary model, AbsPath path, int month) : base(model, path){
			try{
				myDate = new DateTime(Year, month, 1);
			} catch (ArgumentOutOfRangeException) {}
			myPath = myModel.BasePath.Combine(month);
		}
Exemplo n.º 3
0
		// 渡された次の日記を取得します。
		public YearDiary GetNextDiary(YearDiary d){
			int index = Array.IndexOf(DiaryList, d);
			if(index == DiaryList.Length - 1) return null;
			if(index < 0) index = -1;
			return DiaryList[index+1];
		}