예제 #1
0
 public UMLObjectCollection(Diagram diagram)
 {
     if (diagram == null)
         throw new ArgumentNullException();
     this.diagram = diagram;
     models = diagram.Models;
     connections = diagram.Connections;
 }
예제 #2
0
 /// <summary>
 /// Create new blank diagram
 /// </summary>
 private void CreateNewDiagram()
 {
     Diagram diagram = new Diagram();
     if (Project.Current == null)
         CreateNewPorject();
     Project.Current.Children.Add(diagram);
 }