| | |
| | | try |
| | | { |
| | | var page = new AddGroupControlPage(null, |
| | | ()=> { |
| | | (newGC)=> { |
| | | ReadGroupControlList(); |
| | | }); |
| | | MainPage.BasePageView.AddChidren(page); |
| | |
| | | contentView = new VerticalScrolViewLayout() |
| | | { |
| | | Y = Application.GetRealHeight(64), |
| | | Height = Application.GetRealHeight(550), |
| | | Height = Application.GetRealHeight(667 - 64), |
| | | BackgroundColor = CSS_Color.MainBackgroundColor, |
| | | }; |
| | | bodyView.AddChidren(contentView); |
| | |
| | | roomIds = new List<string> { Room.CurrentSpatial.RoomList[0].roomId }, |
| | | sid = "00000000000000001", |
| | | type = "light", |
| | | uids = new List<string>() { Room.CurrentSpatial.RoomList[0].uid }, |
| | | }); |
| | | |
| | | list.Add(new GroupControl() |
| | |
| | | roomIds = new List<string> { Room.CurrentSpatial.RoomList[0].roomId }, |
| | | sid = "00000000000000002", |
| | | type = "light", |
| | | uids = new List<string>() { Room.CurrentSpatial.RoomList[0].uid }, |
| | | }); |
| | | } |
| | | |
| | |
| | | |
| | | EventHandler<MouseEventArgs> eventHandler = (sender, e) => { |
| | | var page = new AddGroupControlPage(groupControl, |
| | | () => { |
| | | |
| | | (newGC) => { |
| | | try |
| | | { |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | groupControl.roomIds = newGC.uids; |
| | | btnFunctionLocationInfo.Text = newGC.GetUidListName(); |
| | | }); |
| | | }catch(Exception ex) |
| | | { |
| | | MainPage.Log($"刷新群控房间信息异常:{ex.Message}"); |
| | | } |
| | | }); |
| | | MainPage.BasePageView.AddChidren(page); |
| | | page.LoadPage(); |