Ejemplo n.º 1
0
 private void RegisterPSMComponent(PSMComponent component)
 {
     component.Schema = this;
     if (ComponentAdded != null)
     {
         ComponentAdded(this, component);
     }
     if (Project.UsesVersioning)
     {
         Version.NotifyItemAdded(this, component);
     }
 }
Ejemplo n.º 2
0
 private void UnregisterPSMComponent(PSMComponent component)
 {
     if (Project.UsesVersioning)
     {
         Version.NotifyItemRemoved(this, component);
     }
     component.Schema = null;
     if (ComponentRemoved != null)
     {
         ComponentRemoved(this, component);
     }
 }
Ejemplo n.º 3
0
        public override void FillCopy(IExolutioCloneable copyComponent, ProjectVersion projectVersion,
                                      ElementCopiesMap createdCopies)
        {
            base.FillCopy(copyComponent, projectVersion, createdCopies);

            PSMComponent copyPSMComponent = (PSMComponent)copyComponent;

            if (Interpretation != null)
            {
                copyPSMComponent.interpretationGuid = createdCopies.GetGuidForCopyOf(Interpretation);
            }
        }