| | |
| | | |
| | | public static FrameLayout UserPageView = new FrameLayout (); |
| | | |
| | | public static Button LinkStatusTip = new Button () { |
| | | Height = Application.GetRealHeight (36), |
| | | Width = Application.GetRealWidth (640), |
| | | BackgroundColor = SkinStyle.Current.LinkStatusTipColor |
| | | }; |
| | | //public static Button LinkStatusTip = new Button () { |
| | | // Height = Application.GetRealHeight (36), |
| | | // Width = Application.GetRealWidth (640), |
| | | // BackgroundColor = SkinStyle.Current.LinkStatusTipColor |
| | | //}; |
| | | |
| | | public static PageLayout FavoritePageView = new PageLayout () { |
| | | IsShowPoint = false, |
| | |
| | | Width = Application.GetRealWidth (640), |
| | | Height = Application.GetRealHeight (1136 - 126 - 90 - 90), |
| | | BackgroundColor = SkinStyle.Current.ViewColor, |
| | | ScrollEnabled = false |
| | | ScrollEnabled = true |
| | | }; |
| | | public static Button btnVersion = new Button () { |
| | | Y = Application.GetRealHeight (1136 - 90 - 90), |
| | |
| | | //IO.FileUtils.SaveEquipmentMessage (ud3, "3"); |
| | | #endif |
| | | UserHomePage.FrameLayoutMain.AddChidren (UserPageView); |
| | | UserHomePage.FrameLayoutMain.AddChidren (LinkStatusTip); |
| | | //UserHomePage.FrameLayoutMain.AddChidren (LinkStatusTip); |
| | | |
| | | UserPageView.AddChidren (FavoritePageView); |
| | | FavoritePageView.AddChidren (FavoriteBodyView); |
| | |
| | | SelectedBottomButton (btnFavorite); |
| | | curPageView = 0; |
| | | SharedMethod.SharedMethod.CurPageLayout = FavoritePageView; |
| | | MainPage.readDevciesStatus = true; |
| | | }; |
| | | |
| | | btnDevice.MouseUpEventHandler += (sender, e) => { |
| | |
| | | UserDeviceView.DeviceMode (); |
| | | SharedMethod.SharedMethod.CurPageLayout = DevicePageView; |
| | | curPageView = 1; |
| | | MainPage.readDevciesStatus = true; |
| | | } catch { } finally { |
| | | } |
| | | }; |
| | |
| | | SelectedBottomButton (btnRoom); |
| | | curPageView = 2; |
| | | SharedMethod.SharedMethod.CurPageLayout = RoomPageView; |
| | | MainPage.readDevciesStatus = false; |
| | | }; |
| | | |
| | | btnSetting.MouseUpEventHandler += (sender, e) => { |
| | |
| | | SettingPageView.PageIndex = 0; |
| | | curPageView = 3; |
| | | SharedMethod.SharedMethod.CurPageLayout = SettingPageView; |
| | | MainPage.readDevciesStatus = false; |
| | | }; |
| | | FavoritePageView.PageChange += (sender, e) => { |
| | | if (e < FavoritePageView.ChildrenCount - 1) { |