private void InitGlobalProperties( ) { _popUpWindow = new PopUpWindow( this ); _tempViewport = new ViewportControl( ); _tempViewport.Location = new System.Drawing.Point( -20, 12 ); Controls.Add( _tempViewport ); _itemSelectionTool.Click += new EventHandler( _tools.SelectionTool_Click ); _itemToggleGrid.Click += new EventHandler( _tools.ToggleGrid_Click ); _itemToggleZones.Click += new EventHandler( _tools.ToggleZones_Click ); _itemToggleLight.Click += new EventHandler( _tools.ToggleLight_Click ); _itemToggleEffects.Click += new EventHandler( _tools.ToggleEffects_Click ); this.Text = Consts.Editor.TITLE; _undoProvider = new UndoProvider( ); _undoProvider.CanRedoChanged += new EventHandler( UndoProvider_CanRedoChanged ); _undoProvider.CanUndoChanged += new EventHandler( UndoProvider_CanUndoChanged ); }
private void DisposeResources( ) { _undoProvider = null; _assets.Dispose( ); _tools.Dispose( ); _popUpWindow.Dispose( ); _properties.Dispose( ); _layers.Dispose( ); _scriptEditor.Dispose( ); _contentBuilder.Dispose( ); _contentManager.Unload( ); _contentManager.Dispose( ); _dockPanel.Dispose( ); }