| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 | 
							- using MECF.Framework.UI.Client.CenterViews.Dialogs;
 
- using System;
 
- using System.Collections.Generic;
 
- using System.Linq;
 
- using System.Text;
 
- using System.Threading.Tasks;
 
- using System.Windows;
 
- using FurnaceUI.Models;
 
- namespace FurnaceUI.Views.Editors
 
- {
 
-     public class TempValueSetViewModel : FurnaceUIViewModelBase
 
-     {
 
-         public bool IsEnable => CGlobal.RecipeProcessEditViewEnable;//是否是View模式
 
-         private string _tempSetValue;
 
-         public string TempSetValue
 
-         {
 
-             get => _tempSetValue; set
 
-             {
 
-                 _tempSetValue = value;
 
-                 NotifyOfPropertyChange("TempSetValue");
 
-             }
 
-         }
 
-         public bool IsBagValue { get; set; }
 
-         private int _tempMaxValue;
 
-         public int TempMaxValue
 
-         {
 
-             get => _tempMaxValue; set
 
-             {
 
-                 _tempMaxValue = value;
 
-                 NotifyOfPropertyChange("TempMaxValue");
 
-             }
 
-         }
 
-         private int _tempMinValue;
 
-         public int TempMinValue
 
-         {
 
-             get => _tempMinValue; set
 
-             {
 
-                 _tempMinValue = value;
 
-                 NotifyOfPropertyChange("TempMinValue");
 
-             }
 
-         }
 
-         public void SetTemperatureMaxValueCmd(string operate, object sender)
 
-         {
 
-             if (operate == "UP")
 
-             {
 
-                 TempMaxValue += 10;
 
-             }
 
-             else if (operate == "DOWN")
 
-             {
 
-                 TempMaxValue -= 10;
 
-             }
 
-         }
 
-         public void SetTemperatureMinValueCmd(string operate, object sender)
 
-         {
 
-             if (operate == "UP")
 
-             {
 
-                 TempMinValue += 10;
 
-             }
 
-             else if (operate == "DOWN")
 
-             {
 
-                 TempMinValue -= 10;
 
-             }
 
-         }
 
-         public void SetTemperatureValueCmd(object sender)
 
-         {
 
-             //NumberKeyboard numberKeyboard = new NumberKeyboard("Set Temperature Value", TempSetValue.ToString());
 
-             //if ((bool)numberKeyboard.ShowDialog())
 
-             //{
 
-             //    TempSetValue = float.Parse(numberKeyboard.ValueString);
 
-             //}
 
-         }
 
-         public void SaveCmd()
 
-         {
 
-             ((Window)GetView()).DialogResult=true;
 
-         }
 
-         public void CloseCmd()
 
-         {
 
-             ((Window)GetView()).DialogResult=false;
 
-         }
 
-     }
 
- }
 
 
  |