|
@@ -158,41 +158,41 @@ namespace FurnaceUI.Views.Editors
|
|
|
switch (setName)
|
|
|
{
|
|
|
case "TempSet":
|
|
|
- //string strRetValue = ShowNumberKeyboard(sender as Button, "");
|
|
|
- //foreach (var item in TempSetDataList)
|
|
|
- //{
|
|
|
- // if (strRetValue.Equals("Cancel"))
|
|
|
- // {
|
|
|
- // continue;
|
|
|
- // }
|
|
|
- // item.SetValue = strRetValue;
|
|
|
- //}
|
|
|
-
|
|
|
- TempAllZoneValueSetViewModel tempAllZoneValueSetViewModel = new TempAllZoneValueSetViewModel();
|
|
|
- tempAllZoneValueSetViewModel.RecipeType = RecipeType;
|
|
|
- var result1 = (windowManager as WindowManager)?.ShowDialogWithTitle(tempAllZoneValueSetViewModel, null, "Temperature All Zone Value Set");
|
|
|
- if (tempAllZoneValueSetViewModel.IsSave)
|
|
|
+ string strRetValue = ShowNumberKeyboard(sender as Button, "");
|
|
|
+ foreach (var item in TempSetDataList)
|
|
|
{
|
|
|
- string strTemp;
|
|
|
- if (tempAllZoneValueSetViewModel.SelectedNode is null) return;
|
|
|
- string strNodeName = tempAllZoneValueSetViewModel.SelectedNode.Name;
|
|
|
- if (tempAllZoneValueSetViewModel.SelectedNode.Items.Count > 1)
|
|
|
+ if (strRetValue.Equals("Cancel"))
|
|
|
{
|
|
|
- for (int i = 0; i < tempAllZoneValueSetViewModel.SelectedNode.Items.Count; i++)
|
|
|
- {
|
|
|
- strTemp =tempAllZoneValueSetViewModel.SelectedNode.Items[i].CurrentValue;
|
|
|
- if (strTemp.StartsWith(":")) strTemp = strTemp.Substring(1);
|
|
|
- //TemperatureValues[TemperatureName[i]] = strTemp;
|
|
|
- //SetViewData(i + 1, strTemp);
|
|
|
- var tempData = TempSetDataList.FirstOrDefault(x => x.Name == tempAllZoneValueSetViewModel.SelectedNode.Items[i].Name);
|
|
|
- if (tempData != null)
|
|
|
- {
|
|
|
- tempData.SetValue.SetValue(strTemp);
|
|
|
- }
|
|
|
- }
|
|
|
+ continue;
|
|
|
}
|
|
|
-
|
|
|
+ item.SetValue.SetValue(strRetValue);
|
|
|
}
|
|
|
+
|
|
|
+ //TempAllZoneValueSetViewModel tempAllZoneValueSetViewModel = new TempAllZoneValueSetViewModel();
|
|
|
+ //tempAllZoneValueSetViewModel.RecipeType = RecipeType;
|
|
|
+ //var result1 = (windowManager as WindowManager)?.ShowDialogWithTitle(tempAllZoneValueSetViewModel, null, "Temperature All Zone Value Set");
|
|
|
+ //if (tempAllZoneValueSetViewModel.IsSave)
|
|
|
+ //{
|
|
|
+ // string strTemp;
|
|
|
+ // if (tempAllZoneValueSetViewModel.SelectedNode is null) return;
|
|
|
+ // string strNodeName = tempAllZoneValueSetViewModel.SelectedNode.Name;
|
|
|
+ // if (tempAllZoneValueSetViewModel.SelectedNode.Items.Count > 1)
|
|
|
+ // {
|
|
|
+ // for (int i = 0; i < tempAllZoneValueSetViewModel.SelectedNode.Items.Count; i++)
|
|
|
+ // {
|
|
|
+ // strTemp =tempAllZoneValueSetViewModel.SelectedNode.Items[i].CurrentValue;
|
|
|
+ // if (strTemp.StartsWith(":")) strTemp = strTemp.Substring(1);
|
|
|
+ // //TemperatureValues[TemperatureName[i]] = strTemp;
|
|
|
+ // //SetViewData(i + 1, strTemp);
|
|
|
+ // var tempData = TempSetDataList.FirstOrDefault(x => x.Name == tempAllZoneValueSetViewModel.SelectedNode.Items[i].Name);
|
|
|
+ // if (tempData != null)
|
|
|
+ // {
|
|
|
+ // tempData.SetValue.SetValue(strTemp);
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+
|
|
|
+ //}
|
|
|
break;
|
|
|
case "RampSet":
|
|
|
string strRetRamp = ShowNumberKeyboard(sender as Button, "");
|