| | |
| | | try |
| | | { |
| | | var page = new AddGroupControlPage(null, |
| | | ()=> { |
| | | (newGC)=> { |
| | | ReadGroupControlList(); |
| | | }); |
| | | MainPage.BasePageView.AddChidren(page); |
| | |
| | | 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(() => |
| | | { |
| | | btnFunctionLocationInfo.Text = groupControl.GetRoomListName(); |
| | | groupControl.roomIds = newGC.uids; |
| | | btnFunctionLocationInfo.Text = newGC.GetUidListName(); |
| | | }); |
| | | }catch(Exception ex) |
| | | { |