void ByMoveDownClick(object sender, EventArgs e) { int index = this.dataGridView1.SelectedCells[0].RowIndex; ModelMetaClass modelToWrite = (ModelMetaClass)this.bindingSource1[index]; modelToWrite.Write(); }
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(); }
private void RunNextModel() { runningIndex++; ModelMetaClass modelToRun = (ModelMetaClass)this.bindingSource1[runningIndex]; modelToRun.OnSimulationComplete += this.SimulationComplete; modelToRun.Write(); modelToRun.Run(); }