internal override void CommandOperation() { PSMContentModel cm = Project.TranslateComponent <PSMContentModel>(cmodelGuid); oldtype = cm.Type; cm.Type = newtype; Report = new CommandReport(CommandReports.PSM_component_deleted, cm); }
public void Set(Guid parentPSMAssociationMemberGuid, IEnumerable <Guid> psmAssociations, PSMContentModelType type, Guid newContentModelGuid, Guid newAssociationGuid) { ParentAssociationMemberGuid = parentPSMAssociationMemberGuid; Associations = psmAssociations.ToList(); Type = type; ContentModelGuid = newContentModelGuid; AssociationGuid = newAssociationGuid; }
internal override void CommandOperation() { PSMSchema s = Project.TranslateComponent <PSMSchema>(schemaGuid); PSMContentModel cm = Project.TranslateComponent <PSMContentModel>(cmodelGuid); type = cm.Type; rootIndex = s.Roots.Remove(cm); Project.TranslateComponent <PSMSchema>(schemaGuid).PSMContentModels.Remove(cm); Project.mappingDictionary.Remove(cm); Report = new CommandReport(CommandReports.PSM_component_deleted, cm); }
public acmdUpdatePSMContentModel(Controller c, Guid psmContentModelGuid, PSMContentModelType type) : base(c) { cmodelGuid = psmContentModelGuid; newtype = type; }
public static string EncodeValue(PSMContentModelType upper) { return(upper.ToString()); }
public void Set(PSMContentModelType contentModelType, Guid psmSchemaGuid) { SchemaGuid = psmSchemaGuid; Type = contentModelType; }
public acmdNewPSMContentModel(Controller c, PSMContentModelType contentModelType, Guid psmSchemaGuid) : base(c) { schemaGuid = psmSchemaGuid; type = contentModelType; }
public void Set(Guid psmContentModelGuid, PSMContentModelType type) { CmodelGuid = psmContentModelGuid; Type = type; }