Esempio n. 1
0
 /// <summary>
 /// Detach the model from the view.
 /// </summary>
 public void Detach()
 {
     view.Grid2.CellsChanged -= OnCellValueChanged2;
     propertyPresenter.Detach();
     gridPresenter.Detach();
     explorerPresenter.CommandHistory.ModelChanged -= OnModelChanged;
 }
Esempio n. 2
0
        /// <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;
        }
Esempio n. 3
0
 /// <summary>
 /// Detach this presenter
 /// </summary>
 public void Detach()
 {
     spatialGridPresenter.Detach();
     temporalGridPresenter.Detach();
     propertyPresenter.Detach();
     SaveTable();
     forestryViewer.OnCellEndEdit          -= OnCellEndEdit;
     presenter.CommandHistory.ModelChanged -= OnModelChanged;
 }
Esempio n. 4
0
        /// <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;
        }
Esempio n. 5
0
 /// <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;
 }
Esempio n. 6
0
 /// <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;
     }
 }
Esempio n. 7
0
        /// <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();
            }
        }
Esempio n. 8
0
        /// <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();
        }
Esempio n. 9
0
 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;
 }
Esempio n. 10
0
 /// <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;
 }
Esempio n. 11
0
        /// <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);
            }
        }
Esempio n. 12
0
        /// <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});
        }
Esempio n. 13
0
        /// <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);
            }
        }