예제 #1
0
 /// <summary>
 /// Create a new <see cref="ToolWindowDiagramView"/> for the specific <see cref="ToolWindow"/>
 /// </summary>
 /// <remarks>The control is returned sited to the <see cref="IServiceProvider"/> of the ToolWindow</remarks>
 public ToolWindowDiagramView(ToolWindow hostWindow)
 {
     myHostWindow = hostWindow;
     base.DiagramClientView.DiagramAssociated     += new EventHandler(this.OnDiagramAssociated);
     base.DiagramClientView.DiagramDisassociating += new EventHandler(this.OnDiagramDisassociating);
     base.DiagramClientView.ContextMenuRequested  += new ContextMenuRequestedEventHandler(this.OnClientViewContextMenuRequested);
     base.DiagramClientView.DragDrop      += new DragEventHandler(this.OnClientViewDragDrop);
     base.DiagramClientView.DragLeave     += new EventHandler(this.OnClientViewDragLeave);
     InPlaceTextEditor.Instance.BeginEdit += new DiagramItemEventHandler(this.OnBeginInPlaceEdit);
     InPlaceTextEditor.Instance.EndEdit   += new DiagramItemEventHandler(this.OnEndInPlaceEdit);
     Site = new DiagramViewSite(hostWindow);
 }
예제 #2
0
		/// <summary>
		/// Create a new <see cref="ToolWindowDiagramView"/> for the specific <see cref="ToolWindow"/>
		/// </summary>
		/// <remarks>The control is returned sited to the <see cref="IServiceProvider"/> of the ToolWindow</remarks>
		public ToolWindowDiagramView(ToolWindow hostWindow)
		{
			myHostWindow = hostWindow;
			base.DiagramClientView.DiagramAssociated += new EventHandler(this.OnDiagramAssociated);
			base.DiagramClientView.DiagramDisassociating += new EventHandler(this.OnDiagramDisassociating);
			base.DiagramClientView.ContextMenuRequested += new ContextMenuRequestedEventHandler(this.OnClientViewContextMenuRequested);
			base.DiagramClientView.DragDrop += new DragEventHandler(this.OnClientViewDragDrop);
			base.DiagramClientView.DragLeave += new EventHandler(this.OnClientViewDragLeave);
			InPlaceTextEditor.Instance.BeginEdit += new DiagramItemEventHandler(this.OnBeginInPlaceEdit);
			InPlaceTextEditor.Instance.EndEdit += new DiagramItemEventHandler(this.OnEndInPlaceEdit);
			Site = new DiagramViewSite(hostWindow);
		}