Esempio n. 1
0
        void ByMoveDownClick(object sender, EventArgs e)
        {
            int            index        = this.dataGridView1.SelectedCells[0].RowIndex;
            ModelMetaClass modelToWrite = (ModelMetaClass)this.bindingSource1[index];

            modelToWrite.Write();
        }
Esempio n. 2
0
        public void createRunModel()
        {
            if (!modelToRun.IsLoaded)
            {
                modelToRun.Load();
            }


            modelToRun.Variables.Clear();

            //Trace.Write("(");
            foreach (Variable v in InputVariables)
            {
                modelToRun.Variables.Add(v);
                //Trace.Write(" "+ v.ResetValue+" ");
            }
            //Trace.Write(")");

            foreach (Variable v in UserVariables)
            {
                modelToRun.Variables.Add(v);
            }

            modelToRun.Replications = ReplicationTimes;
            modelToRun.RunLength    = RunLength;
            modelToRun.Write();
        }
Esempio n. 3
0
        private void RunNextModel()
        {
            runningIndex++;
            ModelMetaClass modelToRun = (ModelMetaClass)this.bindingSource1[runningIndex];

            modelToRun.OnSimulationComplete += this.SimulationComplete;
            modelToRun.Write();
            modelToRun.Run();
        }