Ejemplo n.º 1
0
        public void Attach(object Model, object View, ExplorerPresenter explorerPresenter)
        {
            Experiment        = Model as Experiment;
            ListView          = View as IMemoView;
            ExplorerPresenter = explorerPresenter;

            ListView.MemoLines = Experiment.Names();
            ListView.LabelText = "Listed below are names of the " + ListView.MemoLines.Length.ToString() + " simulations that this experiment will create";
            ListView.ReadOnly  = true;
            ListView.AddContextAction("Run APSIM", OnRunApsimClick);
        }
Ejemplo n.º 2
0
        public void Attach(object Model, object View, ExplorerPresenter explorerPresenter)
        {
            Experiment = Model as Experiment;
            ListView = View as IMemoView;
            ExplorerPresenter = explorerPresenter;

            ListView.MemoLines = Experiment.Names();
            ListView.LabelText = "Listed below are names of the " + ListView.MemoLines.Length.ToString() + " simulations that this experiment will create";
            ListView.ReadOnly = true;
            ListView.AddContextAction("Run APSIM", OnRunApsimClick);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Attach the model and view
        /// </summary>
        /// <param name="model">The model</param>
        /// <param name="view">The view</param>
        /// <param name="explorerPresenter">The explorer presenter</param>
        public void Attach(object model, object view, ExplorerPresenter explorerPresenter)
        {
            experiment             = model as Experiment;
            listView               = view as IMemoView;
            this.explorerPresenter = explorerPresenter;

            string[] allNames = experiment.GetSimulationNames().ToArray();
            listView.MemoLines = allNames;
            listView.LabelText = "Listed below are names of the " + allNames.Length.ToString() + " simulations that this experiment will create";
            listView.ReadOnly  = true;
            listView.AddContextAction("Run APSIM", OnRunApsimClick);
        }