diff --git a/ViewModel/MainWindowViewModel.cs b/ViewModel/MainWindowViewModel.cs index f43063d..9d09071 100644 --- a/ViewModel/MainWindowViewModel.cs +++ b/ViewModel/MainWindowViewModel.cs @@ -779,7 +779,16 @@ namespace DyeingComputer.ViewModel { if (STEP_finish) { - + RUN_STEPID++; + DataRow[] arrRows = RUN_DATATABLE.Select("STEP ='" + RUN_STEPID + "'"); + string T_ID = arrRows[0]["StepID"].ToString(); + double T_P1 = Convert.ToDouble(arrRows[0]["Parameter1"].ToString()); + double T_P2 = Convert.ToDouble(arrRows[0]["Parameter2"].ToString()); + double T_P3 = Convert.ToDouble(arrRows[0]["Parameter3"].ToString()); + double T_P4 = Convert.ToDouble(arrRows[0]["Parameter4"].ToString()); + double T_P5 = Convert.ToDouble(arrRows[0]["Parameter5"].ToString()); + + STEP_START(T_ID,T_P1,T_P2,T_P3,T_P4,T_P5); } if (string.IsNullOrEmpty(Name_err.ToString()))