| | |
| | | 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();
|
| | | //发送模式命令
|
| | |
| | | }
|
| | | 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")
|
| | | {
|
| | |
| | | }
|
| | | 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
|
| | | {
|
| | |
| | | /// </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>
|