Exemple #1
0
 public static void CreateFilterModel(Zetbox.App.GUI.DateRangeFilterConfiguration obj, MethodReturnEventArgs <IFilterModel> e)
 {
     e.Result = DateRangeFilterModel.Create(
         FrozenContext,
         obj.GetLabel(),
         FilterValueSource.FromProperty(obj.Property),
         obj.RequestedKind,
         obj.IsCurrentYearDefault ?? false,
         obj.IsCurrentQuaterDefault ?? false,
         obj.IsCurrentMonthDefault ?? false);
 }
Exemple #2
0
 public static void NotifyCreated(Zetbox.App.GUI.DateRangeFilterConfiguration obj)
 {
     obj.ViewModelDescriptor = ViewModelDescriptors.Zetbox_Client_Presentables_FilterViewModels_DateRangeFilterViewModel
                               .Find(obj.Context);
 }