| | |
| | | { |
| | | public AddControlComplete() |
| | | { |
| | | Tag = "Pir"; |
| | | Tag = "PirView"; |
| | | } |
| | | public void Show(Control control, bool bool_library) |
| | | { |
| | | //数据转换 |
| | | Entity.Function function = new Entity.Function(); |
| | | function.sid = control.sid; |
| | | function.deviceId = control.deviceId; |
| | | function.name = control.name; |
| | | function.spk = control.spk; |
| | | function.attributes.AddRange(function.attributes); |
| | | { |
| | | function.sid = control.sid; |
| | | function.deviceId = control.deviceId; |
| | | function.name = control.name; |
| | | function.spk = control.spk; |
| | | //function.attributes.AddRange(control.status); |
| | | //遥控器添加到列表; |
| | | if (null == Pir.currPir.FunctioList.Find((c) => c.sid == function.sid)) |
| | | { |
| | | Pir.currPir.FunctioList.Add(function); |
| | | } |
| | | } |
| | | #region 界面布局 |
| | | this.BackgroundColor = CSS.CSS_Color.viewMiddle; |
| | | PirDevice.View.TopView topView = new View.TopView(); |
| | |
| | | //完成点击事件 |
| | | saveView.btnClick.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | MainPage.BasePageView.RemoveViewByTag("AddControl"); |
| | | MainPage.BasePageView.RemoveViewByTag("Pir"); |
| | | if (null == Pir.currPir.FunctioList.Find((c) => c.sid == function.sid)) |
| | | { |
| | | Pir.currPir.FunctioList.Add(function); |
| | | } |
| | | //Entity.FunctionAttributes functionAttributes = new Entity.FunctionAttributes(); |
| | | //functionAttributes.key |
| | | |
| | | |
| | | //前面界面 |
| | | // this.RemoveFromParent(); |
| | | MainPage.BasePageView.RemoveViewByTag("PirView"); |
| | | //主界面 |
| | | MainPage.BasePageView.RemoveViewByTag("PirMain"); |
| | | |
| | | }; |
| | | #endregion |
| | | } |