/// <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 the model from the view. /// </summary> public void Detach() { propertyPresenter.Detach(); this.BuildScript(); // compiles and saves the script this.managerView.Editor.ContextItemsNeeded -= this.OnNeedVariableNames; this.managerView.Editor.LeaveEditor -= this.OnEditorLeave; }
/// <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() { this.BuildScript(); // compiles and saves the script propertyPresenter.Detach(); this.explorerPresenter.CommandHistory.ModelChanged -= this.CommandHistory_ModelChanged; this.managerView.Editor.ContextItemsNeeded -= this.OnNeedVariableNames; this.managerView.Editor.LeaveEditor -= this.OnEditorLeave; }
/// <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() { propertyPresenter.Detach(); explorerPresenter.CommandHistory.ModelChanged -= OnModelChanged; if (view != null) { this.view.StoreSettings(); this.view.ViewChanged -= this.OnViewChanged; } }
/// <summary> /// Detach the model from the view. /// </summary> public void Detach() { this.explorerPresenter.CommandHistory.ModelChanged -= this.OnModelChanged; propertyPresenter.Detach(); profileGrid.Detach(); if (this.graphPresenter != null) { this.graphPresenter.Detach(); } }
/// <summary> /// Detach the model from the view. /// </summary> public void Detach() { BuildScript(); // compiles and saves the script propertyPresenter.Detach(); explorerPresenter.CommandHistory.ModelChanged -= CommandHistory_ModelChanged; managerView.Editor.ContextItemsNeeded -= OnNeedVariableNames; managerView.Editor.LeaveEditor -= OnEditorLeave; intellisense.ItemSelected -= OnIntellisenseItemSelected; intellisense.Cleanup(); }
public void Detach() { propertyPresenter.Detach(); SaveTable(); ForestryModel.dates = ForestryViewer.SaveDates(); ForestryModel.heights = ForestryViewer.SaveHeights(); ForestryModel.NDemands = ForestryViewer.SaveNDemands(); ForestryModel.CanopyWidths = ForestryViewer.SaveCanopyWidths(); ForestryModel.TreeLeafAreas = ForestryViewer.SaveTreeLeafAreas(); ForestryViewer.OnCellEndEdit -= OnCellEndEdit; }
/// <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.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); } }
/// <summary> /// Detach the model from the view. /// </summary> public void Detach() { view.OnGraphChanged -= OnViewChanged; view.AddNode -= OnAddNode; view.DelNode -= OnDelNode; view.AddArc -= OnAddArc; view.DelArc -= OnDelArc; presenter.CommandHistory.ModelChanged -= OnModelChanged; intellisense.ItemSelected -= OnIntellisenseItemSelected; intellisense.Cleanup(); view.RuleList.ContextItemsNeeded -= OnNeedVariableNames; view.ActionList.ContextItemsNeeded -= OnNeedEventNames; propertiesPresenter.Detach(); // Shouldn't need to manually update the model at this point. // All changes are applied immediately upon user input. //OnViewChanged(this, new GraphChangedEventArgs() { Nodes = view.Nodes, Arcs = view.Arcs}); }
/// <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); } }