コード例 #1
0
 public void Detach()
 {
     headers     = null;
     simulations = null;
     view.Detach();
     view = null;
 }
コード例 #2
0
        public void Attach(object experiment, object viewer, ExplorerPresenter explorerPresenter)
        {
            model                  = experiment as Experiment;
            view                   = (FactorControlView)viewer;
            view.Presenter         = this;
            this.explorerPresenter = explorerPresenter;
            maxSimsToDisplay       = DEFAULT_MAX_SIMS;

            if (model != null)
            {
                var simNames        = model.GetSimulationNames().ToArray();
                var allCombinations = model.AllCombinations();
                headers     = GetHeaderNames(allCombinations);
                simulations = GetTableData(allCombinations);

                view.Initialise(headers);
                UpdateView();
            }
        }