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; } } }
public bool IsCategory (Server.Models.Infrastructure.TCategory category) { return (EntityAction.Equals (null) ? false : EntityAction.Operation.IsCategory (category)); }
public void Select (Guid id, Server.Models.Infrastructure.TCategory category) { InfoModel.Id = id; Select (category); }
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; } } }
public static TModelProperty Create (Server.Models.Infrastructure.TCategory modelCategory) => new TModelProperty (modelCategory);
TModelProperty (Server.Models.Infrastructure.TCategory modelCategory) : this () { ExtensionModel.SelectModelCategory (modelCategory); ExtensionModel.ValidateModel (); }
public void Select (Server.Models.Infrastructure.TCategory category) { Category = category; }
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); } }