Ejemplo n.º 1
0
        public void CopyFrom(DiagramLibrary diagramLibrary)
        {
            if (null == diagramLibrary)
            {
                throw new ArgumentNullException(nameof(diagramLibrary));
            }

            foreach (KeyValuePair <string, DiagramCollection> sourceKVP in diagramLibrary.GetAll())
            {
                if (!TryGet(sourceKVP.Key, out DiagramCollection collection))
                {
                    collection = Add(sourceKVP.Key);
                }

                collection.Add(sourceKVP.Value);
            }
        }
Ejemplo n.º 2
0
 public PathNotFoundException(DiagramLibrary diagramLibrary, string path) : base(diagramLibrary, path)
 {
 }
Ejemplo n.º 3
0
 public TargetPathException(DiagramLibrary diagramLibrary, string path) : base(diagramLibrary)
 {
     Path = path;
 }
Ejemplo n.º 4
0
 public DiagramCollectionNameAlreadyExistsException(DiagramLibrary diagramLibrary, string path, string name) : base(diagramLibrary, path, name)
 {
 }
Ejemplo n.º 5
0
 public DiagramCollectionNotFoundException(DiagramLibrary diagramLibrary, string path, string name) : base(diagramLibrary, path, name)
 {
 }
Ejemplo n.º 6
0
 public TargetDiagramCollectionException(DiagramLibrary diagramLibrary, string path, string name) : base(diagramLibrary)
 {
     Path = path;
     Name = name;
 }
Ejemplo n.º 7
0
 public DiagramLibraryException(DiagramLibrary diagramLibrary) : base()
 {
     DiagramLibrary = diagramLibrary;
 }