| | |
| | | return; |
| | | } |
| | | var form = HdlFormLogic.Current.GetFormByName("AddMiniRemoteControlDirection1Page") as AddMiniRemoteControlDirection1Page; |
| | | if (form.AddDeviceEvent != null) |
| | | //if (form.AddDeviceEvent != null) |
| | | { |
| | | //代表这个是由温总那边调用的,直接回调函数 |
| | | form.AddDeviceEvent.Invoke(newDevice); |
| | | form.AddDeviceEvent?.Invoke(newDevice); |
| | | //关闭掉这个界面 |
| | | this.CloseForm(); |
| | | //再把AddMiniRemoteControlDirection1Page界面关了 |
| | | HdlFormLogic.Current.CloseFormByFormName("AddMiniRemoteControlDirection1Page"); |
| | | } |
| | | else |
| | | { |
| | | //代表这并不是由温总的界面调用的,则关闭掉全部的界面 |
| | | HdlFormLogic.Current.CloseAllOpenForm(); |
| | | //然后再把温总的界面new起来 |
| | | new UI2.PersonalCenter.PirDevice.Method().MainView(this, newDevice,()=> { }); |
| | | } |
| | | //else |
| | | //{ |
| | | // //代表这并不是由温总的界面调用的,则关闭掉全部的界面 |
| | | // HdlFormLogic.Current.CloseAllOpenForm(); |
| | | // //然后再把温总的界面new起来 |
| | | // new UI2.PersonalCenter.PirDevice.Method().MainView(this, newDevice,()=> { }); |
| | | //} |
| | | }; |
| | | } |
| | | |