| | |
| | | { |
| | | tipMsg = "确定关闭?"; |
| | | } |
| | | if (Language.CurrentLanguage != "Chinese") |
| | | { |
| | | |
| | | tipMsg = "Are you sure to close?"; |
| | | if (this.btnSwitch.IsSelected) |
| | | tipMsg = "Are you sure to open it?"; |
| | | } |
| | | Action action = () => { |
| | | |
| | | this.btnPictrue.CanClick = false; |
| | |
| | | { |
| | | var dic = new Dictionary<string, string>(); |
| | | dic.Add(FunctionAttributeKey.OnOff, statu); |
| | | Control.Ins.SendWriteCommand(this.device, dic, true); |
| | | Control.Ins.SendWriteCommand(this.device, dic); |
| | | HdlThreadLogic.Current.RunMain(() => |
| | | { |
| | | this.btnPictrue.CanClick = true; |
| | |
| | | }); |
| | | }); |
| | | }; |
| | | new PublicAssmebly().TipOptionMsg(StringId.EmptyString, tipMsg, action); |
| | | new PublicAssmebly().TipOptionMsg(StringId.Tip, tipMsg, action); |
| | | |
| | | } |
| | | |