JLChen
2020-04-03 be95e839f40eb3ddf64706b60cba6dfcf4fad5e5
Crabtree/SmartHome/UI/SimpleControl/Phone/User/UserSettingView.cs
@@ -41,11 +41,11 @@
            };
            topView.AddChidren (NameButton);
            //try {
            //    Console.WriteLine ("3");
            //    Utlis.WriteLine ("3");
            //    UserMiddle.SettingBodyView.AddChidren (topView);
            //    Console.WriteLine ("3");
            //    Utlis.WriteLine ("3");
            //} catch(Exception ex) {
            //    Console.WriteLine (ex.ToString ());
            //    Utlis.WriteLine (ex.ToString ());
            //}
            FrameLayout topUserMsgView = new FrameLayout () {
@@ -58,7 +58,7 @@
            Button btnUserIcon = new Button () {
                X = Application.GetRealWidth (27),
                Width = Application.GetRealWidth (96),
                Height = Application.GetRealHeight (96),
                Height = Application.GetRealWidth (96),
                Gravity = Gravity.CenterVertical,
                Radius = 5,
                BorderColor = SkinStyle.Current.Transparent,
@@ -95,7 +95,7 @@
            Button btnTopUserMsgRight = new Button () {
                X = Application.GetRealWidth (570),
                Width = Application.GetRealWidth (28),
                Height = Application.GetRealHeight (40),
                Height = Application.GetRealWidth (40),
                Gravity = Gravity.CenterVertical,
                UnSelectedImagePath = "Item/Right.png",
                SelectedImagePath = "Item/RightSelected.png",
@@ -132,7 +132,7 @@
                    X = Application.GetRealWidth (30),
                    Gravity = Gravity.CenterVertical,
                    Width = Application.GetRealWidth (75),
                    Height = Application.GetRealHeight (75),
                    Height = Application.GetRealWidth (75),
                    UnSelectedImagePath = "AccountSettings/DeviceManagement.png",
                    IsSelected = false
                };
@@ -149,7 +149,7 @@
                EventHandler<MouseEventArgs> SystemEventHandler = (sender, e) => {
                    var hl = new GuideAddResidence ();
                    UserMiddle.SettingPageView.AddChidren (hl);
                    hl.ShowHomeList ();
                    hl.ShowHomeView ();
                    UserMiddle.SettingPageView.PageIndex = UserMiddle.SettingPageView.ChildrenCount - 1;
                    //HomeListView hl = new HomeListView ();
@@ -180,7 +180,7 @@
                X = Application.GetRealWidth (30),
                Gravity = Gravity.CenterVertical,
                Width = Application.GetRealWidth (75),
                Height = Application.GetRealHeight (75),
                Height = Application.GetRealWidth (75),
                UnSelectedImagePath = "AccountSettings/Backup.png"
            };
            BackupView.AddChidren (btnBackupIcon);
@@ -303,7 +303,7 @@
                X = Application.GetRealWidth (30),
                Gravity = Gravity.CenterVertical,
                Width = Application.GetRealWidth (75),
                Height = Application.GetRealHeight (75),
                Height = Application.GetRealWidth (75),
                UnSelectedImagePath = "CrabtreeAdd/Schedule.png",
            };
            ScheduleView.AddChidren (btnScheduleIcon);
@@ -343,7 +343,7 @@
                X = Application.GetRealWidth (30),
                Gravity = Gravity.CenterVertical,
                Width = Application.GetRealWidth (75),
                Height = Application.GetRealHeight (75),
                Height = Application.GetRealWidth (75),
                UnSelectedImagePath = "CrabtreeAdd/Alexa.png", 
            };
            AlexaView.AddChidren (btnAlexaIcon);
@@ -383,7 +383,7 @@
                    X = Application.GetRealWidth (30),
                    Gravity = Gravity.CenterVertical,
                    Width = Application.GetRealWidth (75),
                    Height = Application.GetRealHeight (75),
                    Height = Application.GetRealWidth (75),
                    UnSelectedImagePath = "CrabtreeAdd/SubaccountIcon.png",
                };
                subaccountView.AddChidren (btnSubaccountIcon);
@@ -432,7 +432,7 @@
                            }
                        } catch (Exception ex) {
                            MainPage.FailureToServer ();
                            Console.WriteLine (ex.Message);
                            Utlis.WriteLine (ex.Message);
                        } finally {
                            Application.RunOnMainThread (() => {
                                MainPage.Loading.Hide ();
@@ -459,7 +459,7 @@
                X = Application.GetRealWidth (30),
                Gravity = Gravity.CenterVertical,
                Width = Application.GetRealWidth (75),
                Height = Application.GetRealHeight (75),
                Height = Application.GetRealWidth (75),
                UnSelectedImagePath = "CrabtreeAdd/Help.png",
                SelectedImagePath = "CrabtreeAdd/HelpOn.png"
            };
@@ -475,6 +475,7 @@
            btnhelpTitle.MouseLongEventHandler += (sd, ds) => {
                //var uc = UserConfig.Instance.RometoUserInfoKeys.Find ((obj) => obj.Contains ("HiddenJson"));
                //new Alert ("", uc, "close").Show ();
            };
            EventHandler<MouseEventArgs> helpEventHandler = (sender, e) => {