protected AbstractGraphToolsCommand(Altaxo.Gui.Graph.Graph3D.Viewing.GraphToolType toolType) { _graphToolType = toolType; if (null != Current.Workbench) { Current.Workbench.ActiveWorkbenchWindowChanged += new EventHandler(this.EhWorkbenchContentChanged); this.EhWorkbenchContentChanged(this, EventArgs.Empty); } }
protected AbstractGraphToolsCommand(Altaxo.Gui.Graph.Graph3D.Viewing.GraphToolType toolType) { _graphToolType = toolType; if (null != Current.Workbench) { Current.Workbench.ActiveViewContentChanged += new WeakEventHandler(EhWorkbenchContentChanged, Current.Workbench, nameof(Current.Workbench.ActiveViewContentChanged)); EhWorkbenchContentChanged(this, EventArgs.Empty); } }