Exemple #1
0
 private static void SetWeekFromSchedule(DateTime theDate)
 {
     while (!theDate.DayOfWeek.Equals(DayOfWeek.Sunday))
     {
         theDate = theDate.AddDays(1);
     }
     CurrWeek = Int32.Parse(TflWs.GetWeekFor(theDate));
 }
Exemple #2
0
 private static void SetWeekFromSchedule(DateTime theDate)
 {
     while (!theDate.DayOfWeek.Equals(DayOfWeek.Sunday))
     {
         theDate = theDate.AddDays(1);
     }
     CurrWeek = Int32.Parse(TflWs.GetWeekFor(theDate));
     //  check for probowl weekend
     if (CurrWeek == 0)
     {
         theDate = theDate.AddDays(1);
         while (!theDate.DayOfWeek.Equals(DayOfWeek.Sunday))
         {
             theDate = theDate.AddDays(1);
         }
         CurrWeek = Int32.Parse(TflWs.GetWeekFor(theDate));
     }
 }