コード例 #1
0
 private static IEnumerable <BaseEvent> AllEvents(EventSetup model)
 {
     return(EnumerableHelper.Iterate <BaseEvent>(
                model?.AdjustPaycheckTotalEvents,
                model?.AdjustSnowballAmountEvents,
                model?.ChangeBillPaymentEvents));
 }
コード例 #2
0
        public static IEnumerable <BaseEvent> All(this EventSetup events)
        {
            foreach (var item in events.AdjustPaycheckTotalEvents)
            {
                yield return(item);
            }

            foreach (var item in events.AdjustSnowballAmountEvents)
            {
                yield return(item);
            }

            foreach (var item in events.ChangeBillPaymentEvents)
            {
                yield return(item);
            }
        }
コード例 #3
0
 public EventSetupViewModel(ProfileViewModel profile, EventSetup model)
     : base(profile, AllEvents(model))
 {
 }