Ejemplo n.º 1
0
		public LightingController()
		{
			_view = new LightingControl();

			//			_view.VerticalScrollBarVisibility = System.Windows.Controls.ScrollBarVisibility.Visible;
			//			_view.HorizontalScrollBarVisibility = System.Windows.Controls.ScrollBarVisibility.Visible;

			WorkbenchSingleton.Workbench.ActiveWorkbenchWindowChanged += EhActiveWorkbenchWindowChanged;
			_view.LostFocus += new System.Windows.RoutedEventHandler(_view_LostFocus);
			_view.LostKeyboardFocus += new System.Windows.Input.KeyboardFocusChangedEventHandler(_view_LostKeyboardFocus);
			_view.LightingChanged += EhView_LightingChanged;
			_view.IsEnabled = false;

			EhActiveWorkbenchWindowChanged(this, EventArgs.Empty); // Find out if the active workbench window is a Graph3d
		}
Ejemplo n.º 2
0
		public void Dispose()
		{
			if (_view != null)
			{
				_view = null;
			}
		}