public void SelectModel (Server.Models.Infrastructure.TCategory category, TEntityAction action)
 {
   if (action.NotNull ()) {
     switch (category) {
       case Server.Models.Infrastructure.TCategory.Target:
         SelectionProperty.Select (action);
         break;
     }
   }
 }
Exemple #2
0
 public bool IsCategory (Server.Models.Infrastructure.TCategory category)
 {
   return (EntityAction.Equals (null) ? false : EntityAction.Operation.IsCategory (category));
 }
Exemple #3
0
    public void Select (Guid id, Server.Models.Infrastructure.TCategory category)
    {
      InfoModel.Id = id;

      Select (category);
    }
Exemple #4
0
 public void Select (Server.Models.Infrastructure.TCategory category)
 {
   if (category.NotNull ()) {
     Category = category;
   }
 }
    public void SelectModelCategory (Server.Models.Infrastructure.TCategory modelCategory)
    {
      if (modelCategory.NotNull ()) {
        m_ModelCategory = Server.Models.Infrastructure.TCategoryType.ToValue (modelCategory);

        m_Names.Clear ();

        // remove property not required

        switch (modelCategory) {
          //   Gadget Material
          case Server.Models.Infrastructure.TCategory.Material: {
              m_Names.Add ("LinkProperty");
              m_Names.Add ("ImagePositionProperty");
              m_Names.Add ("HeaderVisibilityProperty");
              m_Names.Add ("FooterVisibilityProperty");
              m_Names.Add ("StyleHorizontalProperty");
              m_Names.Add ("StyleVerticalProperty");
              m_Names.Add ("ColumnsProperty");
              m_Names.Add ("RowsProperty");
              m_Names.Add ("ReferenceProperty");
              m_Names.Add ("SelectionProperty");
              m_Names.Add ("ValueProperty");
              m_Names.Add ("DateProperty");
            }
            break;

          //   Gadget Target
          case Server.Models.Infrastructure.TCategory.Target: {
              m_Names.Add ("LinkProperty");
              m_Names.Add ("ImagePositionProperty");
              m_Names.Add ("HeaderVisibilityProperty");
              m_Names.Add ("FooterVisibilityProperty");
              m_Names.Add ("StyleHorizontalProperty");
              m_Names.Add ("StyleVerticalProperty");
              m_Names.Add ("ColumnsProperty");
              m_Names.Add ("RowsProperty");
              m_Names.Add ("ImageProperty");
              m_Names.Add ("ValueProperty");
              m_Names.Add ("DateProperty");
            }
            break;

          //   Gadget Test
          case Server.Models.Infrastructure.TCategory.Test: {
              m_Names.Add ("LinkProperty");
              m_Names.Add ("ImagePositionProperty");
              m_Names.Add ("HeaderVisibilityProperty");
              m_Names.Add ("FooterVisibilityProperty");
              m_Names.Add ("StyleHorizontalProperty");
              m_Names.Add ("StyleVerticalProperty");
              m_Names.Add ("ColumnsProperty");
              m_Names.Add ("RowsProperty");
              m_Names.Add ("ImageProperty");
              m_Names.Add ("ValueProperty");
              m_Names.Add ("ReferenceProperty");
              m_Names.Add ("SelectionProperty");
              m_Names.Add ("DateProperty");
            }
            break;

          //   Gadget Registration
          case Server.Models.Infrastructure.TCategory.Registration: {
              m_Names.Add ("LinkProperty");
              m_Names.Add ("ExternalLinkProperty");
              m_Names.Add ("ImagePositionProperty");
              m_Names.Add ("HeaderVisibilityProperty");
              m_Names.Add ("FooterVisibilityProperty");
              m_Names.Add ("StyleHorizontalProperty");
              m_Names.Add ("StyleVerticalProperty");
              m_Names.Add ("ColumnsProperty");
              m_Names.Add ("RowsProperty");
              m_Names.Add ("ValueProperty");
              m_Names.Add ("ReferenceProperty");
              m_Names.Add ("SelectionProperty");
            }
            break;

          //   Gadget Result
          case Server.Models.Infrastructure.TCategory.Result: {
              m_Names.Add ("LinkProperty");
              m_Names.Add ("ExternalLinkProperty");
              m_Names.Add ("ImagePositionProperty");
              m_Names.Add ("HeaderVisibilityProperty");
              m_Names.Add ("FooterVisibilityProperty");
              m_Names.Add ("StyleHorizontalProperty");
              m_Names.Add ("StyleVerticalProperty");
              m_Names.Add ("ColumnsProperty");
              m_Names.Add ("RowsProperty");
              m_Names.Add ("ImageProperty");
              m_Names.Add ("ValueProperty");
              m_Names.Add ("ReferenceProperty");
              m_Names.Add ("SelectionProperty");
            }
            break;

          //   Gadget Report
          case Server.Models.Infrastructure.TCategory.Report: {
              m_Names.Add ("LinkProperty");
              m_Names.Add ("ExternalLinkProperty");
              m_Names.Add ("ImagePositionProperty");
              m_Names.Add ("HeaderVisibilityProperty");
              m_Names.Add ("FooterVisibilityProperty");
              m_Names.Add ("StyleHorizontalProperty");
              m_Names.Add ("StyleVerticalProperty");
              m_Names.Add ("ColumnsProperty");
              m_Names.Add ("RowsProperty");
              m_Names.Add ("ImageProperty");
              m_Names.Add ("ValueProperty");
              m_Names.Add ("ReferenceProperty");
              m_Names.Add ("SelectionProperty");
            }
            break;
        }
      }
    }
Exemple #6
0
 public static TModelProperty Create (Server.Models.Infrastructure.TCategory modelCategory) => new TModelProperty (modelCategory);
Exemple #7
0
 TModelProperty (Server.Models.Infrastructure.TCategory modelCategory)
   : this ()
 {
   ExtensionModel.SelectModelCategory (modelCategory);
   ExtensionModel.ValidateModel ();
 }
Exemple #8
0
 public void Select (Server.Models.Infrastructure.TCategory category)
 {
   Category = category;
 }
Exemple #9
0
 internal void Operation (Server.Models.Infrastructure.TCategory category, TServiceAction<Server.Models.Infrastructure.IEntityAction> serviceAction)
 {
   if (category.Equals (Server.Models.Infrastructure.TCategory.None).IsFalse ()) {
     m_EntityService.Operation (serviceAction);
   }
 }