| | |
| | | btnSwitch.IsSelected = i_brushStatu;
|
| | | btnSwitch.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | if (!i_device.online)
|
| | | {
|
| | | new Tip()
|
| | | {
|
| | | CloseTime = 1,
|
| | | Text = Language.StringByID(StringId.DeviceOfflineCannotOption),
|
| | | Direction = AMPopTipDirection.None,
|
| | | }.Show(MainPage.BaseView);
|
| | | return;
|
| | | }
|
| | | //if (!i_device.online)
|
| | | //{
|
| | | // new Tip()
|
| | | // {
|
| | | // CloseTime = 1,
|
| | | // Text = Language.StringByID(StringId.DeviceOfflineCannotOption),
|
| | | // Direction = AMPopTipDirection.None,
|
| | | // }.Show(MainPage.BaseView);
|
| | | // return;
|
| | | //}
|
| | | if (btnSwitch.IsSelected == true)
|
| | | {
|
| | | //取消的话直接取消
|