示例#1
0
 protected AbstractGraphToolsCommand(GraphToolType toolType)
 {
     _graphToolType = toolType;
     if (null != Current.Workbench)
     {
         Current.Workbench.PropertyChanged += EhWorkbenchContentChanged;
         EhWorkbenchContentChanged(this, new PropertyChangedEventArgs(nameof(Current.Workbench.ActiveViewContent)));
     }
 }
示例#2
0
		protected AbstractGraphToolsCommand(GraphToolType toolType)
		{
			_graphToolType = toolType;
			if (null != Current.Workbench)
			{
				Current.Workbench.ActiveWorkbenchWindowChanged += new EventHandler(this.EhWorkbenchContentChanged);
				this.EhWorkbenchContentChanged(this, EventArgs.Empty);
			}
		}
示例#3
0
		public void SetGraphToolFromInternal(GraphToolType value)
		{
			CurrentGraphTool = value;
		}