wxr
2020-08-11 2bec9c838d2d688025698de8ec1de401ffd7dd1f
HDL_ON/UI/UI2/FuntionControlView/FoolHeating/FloorHeatingPageBLL.cs
@@ -74,7 +74,10 @@
                fh.curTemp--;
                arcBar.Progress = fh.curTemp;
                btnTemp.Text = fh.curTemp.ToString();
                Control.Send(CommandType_A.write, fh);
                //Control.Send(CommandType_A.write, fh);
                System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>();
                d.Add("temp", fh.curTemp.ToString());
                Control.SendWriteCommand(fh, d);
            };
            btnPlus.MouseUpEventHandler = (sender, e) =>
            {
@@ -85,13 +88,19 @@
                fh.curTemp++;
                arcBar.Progress = fh.curTemp;
                btnTemp.Text = fh.curTemp.ToString();
                Control.Send(CommandType_A.write, fh);
                //Control.Send(CommandType_A.write, fh);
                System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>();
                d.Add("temp", fh.curTemp.ToString());
                Control.SendWriteCommand(fh, d);
            };
            arcBar.OnStopTrackingTouchEvent = (sender, e) =>
            {
                fh.curTemp = arcBar.Progress;
                btnTemp.Text = fh.curTemp.ToString();
                Control.Send(CommandType_A.write, fh);
                //Control.Send(CommandType_A.write, fh);
                System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>();
                d.Add("temp", fh.curTemp.ToString());
                Control.SendWriteCommand(fh, d);
            };
            arcBar.OnProgressChangedEvent = (sender, e) =>
            {
@@ -113,7 +122,10 @@
            {
                btnSwitch.IsSelected = !btnSwitch.IsSelected;
                fh.on_off = btnSwitch.IsSelected ? "on" : "off";
                Control.Send(CommandType_A.write, fh);
                //Control.Send(CommandType_A.write, fh);
                System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>();
                d.Add("on_off", fh.on_off.ToString());
                Control.SendWriteCommand(fh, d);
            };
        }
@@ -131,7 +143,10 @@
            {
                btn1.IsSelected = btn2.IsSelected = true;
                fh.curMode = curMode;
                Control.Send(CommandType_A.write, fh);
                //Control.Send(CommandType_A.write, fh);
                System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>();
                d.Add("mode", fh.curModeIndex.ToString());
                Control.SendWriteCommand(fh, d);
                dialog.Close();
            };
            btn1.MouseUpEventHandler = eventHandler1;