예제 #1
0
		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);
			}
		}
예제 #2
0
 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);
     }
 }