Exemple #1
0
 /// <summary>
 /// Initializes a new instance of <see cref="T:Dataweb.NShape.Controllers.DiagramController" />.
 /// </summary>
 /// <param name="owner"></param>
 /// <param name="diagram"></param>
 public DiagramController(DiagramSetController owner, Diagram diagram)
 {
     if (owner == null) throw new ArgumentNullException("owner");
     if (owner.Project == null) throw new InvalidOperationException("DiagramSetController's Project property is not set.");
     this.owner = owner;
     this.diagram = diagram;
     if (((IEntity)diagram).Id != null)
         owner.Project.Repository.GetDiagramShapes(this.diagram);
 }
Exemple #2
0
		/// <summary>
		/// Initializes a new instance of <see cref="T:Dataweb.NShape.Controllers.LayerController" />.
		/// </summary>
		public LayerController(DiagramSetController diagramSetController)
			: this()
		{
			if (diagramSetController == null) throw new ArgumentNullException("diagramSetController");
			this.DiagramSetController = diagramSetController;
		}
		/// <summary>
		/// Initializes a new instance of <see cref="T:Dataweb.NShape.Controllers.DiagramController" />.
		/// </summary>
		/// <param name="owner"></param>
		/// <param name="diagram"></param>
		public DiagramController(DiagramSetController owner, Diagram diagram) {
			if (owner == null) throw new ArgumentNullException("owner");
			this.owner = owner;
			this.diagram = diagram;
		}