Beispiel #1
0
 public static void AppliesTo(EasterCalendarRule obj, MethodReturnEventArgs <System.Boolean> e, System.DateTime date)
 {
     if (obj.CheckValidDate(date))
     {
         var ostern = GetOstersonntag(date.Year);
         e.Result = ostern.AddDays(obj.Offset ?? 0) == date.Date;
     }
 }
 public static void AppliesTo(EasterCalendarRule obj, MethodReturnEventArgs<System.Boolean> e, System.DateTime date)
 {
     if (obj.CheckValidDate(date))
     {
         var ostern = GetOstersonntag(date.Year);
         e.Result = ostern.AddDays(obj.Offset ?? 0) == date.Date;
     }
 }
Beispiel #3
0
 public static void ToString(EasterCalendarRule obj, MethodReturnEventArgs <System.String> e)
 {
     e.Result = string.Format(e.Result + "; Easter, offset {0} days", obj.Offset);
 }
 public static void ToString(EasterCalendarRule obj, MethodReturnEventArgs<System.String> e)
 {
     e.Result = string.Format(e.Result + "; Easter, offset {0} days", obj.Offset);
 }