/// <summary> /// Detach the model from the view. /// </summary> public void Detach() { view.Grid2.CellsChanged -= OnCellValueChanged2; propertyPresenter.Detach(); gridPresenter.Detach(); explorerPresenter.CommandHistory.ModelChanged -= OnModelChanged; }
/// <summary> /// Detach this presenter /// </summary> public void Detach() { spatialGridPresenter.Detach(); temporalGridPresenter.Detach(); propertyPresenter.Detach(); SaveTable(); forestryViewer.OnCellEndEdit -= OnCellEndEdit; presenter.CommandHistory.ModelChanged -= OnModelChanged; }
/// <summary> /// Detach the model from the view. /// </summary> public void Detach() { view.Grid2.CellsChanged -= OnCellValueChanged2; intellisense.ItemSelected -= OnIntellisenseItemSelected; view.Grid2.ContextItemsNeeded -= OnContextItemsNeeded; propertyPresenter.Detach(); gridPresenter.Detach(); explorerPresenter.CommandHistory.ModelChanged -= OnModelChanged; }
/// <summary> /// Detach the model from the view. /// </summary> public void Detach() { view.Grid2.ContextItemsNeeded -= OnIntellisenseItemsNeeded; view.Grid1.CellsChanged -= OnCellValueChanged1; view.Grid2.CellsChanged -= OnCellValueChanged2; gridPresenter1.Detach(); gridPresenter2.Detach(); presenter.CommandHistory.ModelChanged -= OnModelChanged; }
/// <summary> /// Detach this presenter /// </summary> public void Detach() { spatialGridPresenter.Detach(); temporalGridPresenter.Detach(); propertyPresenter.Detach(); SaveTable(); forestryModel.Dates = forestryViewer.Dates; forestryModel.Heights = forestryViewer.Heights; forestryModel.NDemands = forestryViewer.NDemands; forestryModel.CanopyWidths = forestryViewer.CanopyWidths; forestryModel.TreeLeafAreas = forestryViewer.TreeLeafAreas; forestryViewer.OnCellEndEdit -= OnCellEndEdit; presenter.CommandHistory.ModelChanged -= OnModelChanged; }
/// <summary> /// Detach the model from the view. /// </summary> public void Detach() { this.view.ProfileGrid.EndEdit(); this.view.ProfileGrid.CellsChanged -= this.OnProfileGridCellValueChanged; this.view.ProfileGrid.GridColumnClicked -= this.OnGridColumnClicked; this.explorerPresenter.CommandHistory.ModelChanged -= this.OnModelChanged; propertyPresenter.Detach(); profileGrid.Detach(); if (this.graphPresenter != null) { this.graphPresenter.Detach(); } if (this.parentForGraph != null && this.graph != null) { this.parentForGraph.Children.Remove(this.graph); } }