예제 #1
0
 public void updateDiary(MyDate first, MyDate last)
 {
     for (MyDate temp = Cloning.Clone(first); temp.CompareTo(last) != 0; temp.addDays(1))
     {
         Diary[temp] = true;
     }
 }
예제 #2
0
 public bool checkEmpty(MyDate first, MyDate last)
 {
     for (MyDate temp = Cloning.Clone(first); temp.CompareTo(last) != 0; temp.addDays(1))
     {
         if (Diary[temp] == true)
         {
             return(false);
         }
     }
     return(true);
 }