예제 #1
0
        public async void Init()
        {
            CommonServices.Init();
            Home_Items            = new Home_Remote();
            Home_Setting          = new Home_Setting();
            Home_About            = new Home_About();
            HamburgerMenu.Content = Home_Items;

            DateTime localDateTime = DateTime.Today;

            //DateTime localDateTime = new DateTime();//测试使用 每次都检查更新
            if (UserSettings.FinalCheckDateTime != localDateTime)
            {
                UserSettings.FinalCheckDateTime = localDateTime;
                if (await Home_About.CheckUpdates())
                {
                    HamburgerMenu.Content       = Home_About;
                    HamburgerMenu.SelectedIndex = 2;
                }
            }
        }
예제 #2
0
        public async void Load()
        {
            GlobalSetting.LoadSetiing();
            Home_Items            = new Home_Remote();
            Home_Setting          = new Home_Setting();
            Home_About            = new Home_About();
            HamburgerMenu.Content = Home_Items;
            RemoteItems.LoadItems(Home_Items.TreeView_Item);

            DateTime localDateTime = DateTime.Today;

            //DateTime localDateTime = new DateTime();//测试使用 每次都检查更新
            if (UserSettings.FinalCheckDateTime != localDateTime)
            {
                UserSettings.FinalCheckDateTime = localDateTime;
                if (await Home_About.CheckUpdates())
                {
                    HamburgerMenu.Content       = Home_About;
                    HamburgerMenu.SelectedIndex = 2;
                }
            }
        }