示例#1
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            //UserInfo user=App.Current.Resources["user"] as UserInfo;

            string task = DataManager.LoadPostSettings("calendar_todo");

            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));
            }

            CalendarViewModel.GetTodo(user.Token, ResultTask);

            base.OnNavigatedTo(e);
        }