Example #1
0
    public static void Select (TCategory category, TActionComponent component, TEntityAction entityAction)
    {
      if (component.NotNull () && entityAction.NotNull ()) {
        switch (category) {
          case TCategory.Material:
            TGadgetMaterialConverter.Select (component, entityAction);
            break;

          case TCategory.Target:
            TGadgetTargetConverter.Select (component, entityAction);
            break;

          case TCategory.Test:
            TGadgetTestConverter.Select (component, entityAction);
            break;

          case TCategory.Registration:
            TGadgetRegistrationConverter.Select (component, entityAction);
            break;

          case TCategory.Result:
            TGadgetResultConverter.Select (component, entityAction);
            break;

          case TCategory.Report:
            TGadgetReportConverter.Select (component, entityAction);
            break;
        }
      }
    }
Example #2
0
 public static void Collection (TCategory category, Collection<TActionComponent> gadgets, TEntityAction entityAction)
 {
   if (gadgets.NotNull () && entityAction.NotNull ()) {
     switch (category) {
       case TCategory.Material:
         TGadgetMaterialConverter.Collection (gadgets, entityAction);
         break;
      
       case TCategory.Target:
         TGadgetTargetConverter.Collection (gadgets, entityAction);
         break;
       
       case TCategory.Test:
         TGadgetTestConverter.Collection (gadgets, entityAction);
         break;
       
       case TCategory.Registration:
         TGadgetRegistrationConverter.Collection (gadgets, entityAction);
         break;
       
       case TCategory.Result:
         TGadgetResultConverter.Collection (gadgets, entityAction);
         break;
       
       case TCategory.Report:
         TGadgetReportConverter.Collection (gadgets, entityAction);
         break;
     }
   }
 }