| | |
| | | //档
|
| | | var strView = Language.StringByID(StringId.Gear); |
| | | |
| | | if (device.online) |
| | | //if (device.online) |
| | | { |
| | | seekBarContr.ProgressChangedEvent += (div, value) => |
| | | { |
| | |
| | | /// </summary>
|
| | | private void SendSwitchComand()
|
| | | { |
| | | if (!device.online) |
| | | { |
| | | new Tip() |
| | | { |
| | | CloseTime = 1, |
| | | Text = Language.StringByID(StringId.DeviceOfflineCannotOption), |
| | | Direction = AMPopTipDirection.None, |
| | | }.Show(MainPage.BaseView); |
| | | return; |
| | | }
|
| | | //if (!device.online) |
| | | //{ |
| | | // new Tip() |
| | | // { |
| | | // CloseTime = 1, |
| | | // Text = Language.StringByID(StringId.DeviceOfflineCannotOption), |
| | | // Direction = AMPopTipDirection.None, |
| | | // }.Show(MainPage.BaseView); |
| | | // return; |
| | | //}
|
| | | this.btnSwitch.CanClick = false;
|
| | |
|
| | | string statu = this.btnSwitch.IsSelected == true ? "off" : "on";
|