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