| | |
| | | Height = Application.GetRealHeight (60), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = SkinStyle.Current.TextColor1, |
| | | Text = "ALL", |
| | | Text = timerTemp.RoomName, |
| | | }; |
| | | roomContenView.AddChidren (btnRoomChoose); |
| | | |
| | |
| | | |
| | | MainPage.Loading.Start ("Please wait..."); |
| | | SmartHome.Method mMthod = new SmartHome.Method (); |
| | | var devList = mMthod.GetRoomDeviceList ("ALL"); |
| | | var devList = mMthod.GetRoomDeviceList (timerTemp.RoomName); |
| | | InitDeviceListView (devList); |
| | | #region -----Room 点击事件 |
| | | btnRoomChoose.MouseUpEventHandler += (sender, e) => { |
| | |
| | | roomListView.AddChidren (btnLine); |
| | | |
| | | btnRoomNameChoose.MouseUpEventHandler += (sd, ds) => { |
| | | //切换房间清空之前选择数据; |
| | | selectedDeviceList.Clear (); |
| | | btnRoomChoose.Text = (sd as Button).Text; |
| | | //获取设备列表 |
| | | var deviceList = mMthod.GetRoomDeviceList (btnRoomChoose.Text); |
| | |
| | | }; |
| | | dialog.AddChidren (chooseTimeBodyView); |
| | | |
| | | var chooseTime = new UIPickerView () { |
| | | var timeView = new FrameLayout () { |
| | | Y = Application.GetRealHeight (1136 - 420 - 90), |
| | | Height = Application.GetRealHeight (420), |
| | | BackgroundColor = 0xFFD7D7D7, |
| | | //BackgroundColor = SkinStyle.Current.ViewColor, |
| | | BackgroundColor = SkinStyle.Current.ViewColor, |
| | | }; |
| | | chooseTimeBodyView.AddChidren (chooseTime); |
| | | chooseTimeBodyView.AddChidren (timeView); |
| | | |
| | | var chooseTime = new UIPickerView () { |
| | | Height = Application.GetRealHeight (400), |
| | | BackgroundColor = SkinStyle.Current.Transparent, |
| | | Gravity = Gravity.CenterVertical |
| | | }; |
| | | timeView.AddChidren (chooseTime); |
| | | |
| | | var bottomView = new FrameLayout () { |
| | | Y = chooseTime.Bottom, |
| | | Y = timeView.Bottom, |
| | | Height = Application.GetRealHeight (90) + 1, |
| | | BackgroundColor = 0xFFD7D7D7, |
| | | }; |