From c5377f28667d8475d0805f6150ff4e0614c77c44 Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期五, 26 二月 2021 16:32:37 +0800 Subject: [PATCH] 修改了涂鸦设备的bug --- HDL_ON/UI/UI2/FuntionControlView/Electrical/TuyaWeepRobotPage.cs | 36 ++++++++++++++++++------------------ 1 files changed, 18 insertions(+), 18 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/Electrical/TuyaWeepRobotPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Electrical/TuyaWeepRobotPage.cs index 6eb2862..eec0502 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/Electrical/TuyaWeepRobotPage.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/Electrical/TuyaWeepRobotPage.cs @@ -336,26 +336,26 @@ dialogBody.AddChidren(menuContr); //鑷姩娓呮壂 - var iconPath = this.weepRobotData.Mode == "random" ? "FunctionIcon/Electrical/WeepRobot/AutoModeSelect.png" : "FunctionIcon/Electrical/WeepRobot/AutoMode.png"; - menuContr.AddRowMenu(Language.StringByID(StringId.AutoClean), iconPath, this.weepRobotData.Mode == "random", () => - { - frameBack.Close(); - //鍙戦�佹ā寮忓懡浠� - this.SendComand("mode", "random"); - }); - - //瀹氱偣娓呮壂 - iconPath = this.weepRobotData.Mode == "smart" ? "FunctionIcon/Electrical/WeepRobot/FixedPointModeSelect.png" : "FunctionIcon/Electrical/WeepRobot/FixedPointMode.png"; - menuContr.AddRowMenu(Language.StringByID(StringId.FixedPointClean), iconPath, this.weepRobotData.Mode == "smart", () => + var iconPath = this.weepRobotData.Mode == "smart" ? "FunctionIcon/Electrical/WeepRobot/AutoModeSelect.png" : "FunctionIcon/Electrical/WeepRobot/AutoMode.png"; + menuContr.AddRowMenu(Language.StringByID(StringId.AutoClean), iconPath, this.weepRobotData.Mode == "smart", () => { frameBack.Close(); //鍙戦�佹ā寮忓懡浠� this.SendComand("mode", "smart"); }); - //鍖哄煙娓呮壂 + //闅忔満娓呮壂 + iconPath = this.weepRobotData.Mode == "random" ? "FunctionIcon/Electrical/WeepRobot/FixedPointModeSelect.png" : "FunctionIcon/Electrical/WeepRobot/FixedPointMode.png"; + menuContr.AddRowMenu(Language.StringByID(StringId.RandomClean), iconPath, this.weepRobotData.Mode == "random", () => + { + frameBack.Close(); + //鍙戦�佹ā寮忓懡浠� + this.SendComand("mode", "random"); + }); + + //铻烘棆娓呮壂 iconPath = this.weepRobotData.Mode == "spiral" ? "FunctionIcon/Electrical/WeepRobot/AreaModeSelect.png" : "FunctionIcon/Electrical/WeepRobot/AreaMode.png"; - menuContr.AddRowMenu(Language.StringByID(StringId.AreaClean), iconPath, this.weepRobotData.Mode == "spiral", () => + menuContr.AddRowMenu(Language.StringByID(StringId.SpiralClean), iconPath, this.weepRobotData.Mode == "spiral", () => { frameBack.Close(); //鍙戦�佹ā寮忓懡浠� @@ -522,10 +522,10 @@ } else if (this.weepRobotData.Mode == "smart") { - //瀹氱偣娓呮壂 + //闅忔満娓呮壂 this.btnModeIcon.UnSelectedImagePath = "FunctionIcon/Electrical/WeepRobot/FixedPointMode.png"; this.btnModeIcon.SelectedImagePath = "FunctionIcon/Electrical/WeepRobot/FixedPointModeSelect.png"; - this.btnModeView.TextID = StringId.FixedPointClean; + this.btnModeView.TextID = StringId.RandomClean; } else if (this.weepRobotData.Mode == "wall_follow") { @@ -536,10 +536,10 @@ } else if (this.weepRobotData.Mode == "spiral") { - //鍖哄煙娓呮壂 + //铻烘棆娓呮壂 this.btnModeIcon.UnSelectedImagePath = "FunctionIcon/Electrical/WeepRobot/AreaMode.png"; this.btnModeIcon.SelectedImagePath = "FunctionIcon/Electrical/WeepRobot/AreaModeSelect.png"; - this.btnModeView.TextID = StringId.AreaClean; + this.btnModeView.TextID = StringId.SpiralClean; } else { @@ -675,7 +675,7 @@ /// </summary> public string Suction = string.Empty; /// <summary> - /// 宸ヤ綔妯″紡(random:鑷姩娓呮壂 smart:瀹氱偣娓呮壂 wall_follow:娌垮娓呮壂 spiral:鍖哄煙娓呮壂 chargego:鍏呯數) + /// 宸ヤ綔妯″紡(smart:鑷姩娓呮壂 random:闅忔満娓呮壂 wall_follow:娌垮娓呮壂 spiral:铻烘棆娓呮壂 chargego:鍏呯數) /// </summary> public string Mode = string.Empty; /// <summary> -- Gitblit v1.8.0