Exemplo n.º 1
0
        private async void Init()
        {
            userViewModel    = new UserViewModel();
            this.DataContext = userViewModel;
            if (_localSettings.Values.ContainsKey("isRemember"))
            {
                if (_localSettings.Values["isRemember"].ToString() == "true")
                {
                    await userViewModel.AutoLogin();

                    NameShow.Text = userViewModel.User.nickname;
                }
            }
            activityViewModel = new ActivityViewModel();
            this.DataContext  = activityViewModel;
        }