protected override void OnNavigatedTo(NavigationEventArgs e) { //UserInfo user=App.Current.Resources["user"] as UserInfo; string task = DataManager.LoadPostSettings("task"); if (!string.IsNullOrEmpty(task)) { ResultTask(task); } UserInfo user = UserDataManager.LoadUserSettings(); if (user != null && string.IsNullOrEmpty(user.Token)) { NavigationService.Navigate(new Uri("/Login.xaml", UriKind.Relative)); } TaskViewModel.GetMyJoin(user.Token, ResultTask); base.OnNavigatedTo(e); }