public SearchPage() { InitializeComponent(); searchPopup = new Popup(); parser = new SearchJsonParser(); parser.resultNumber = resultNumber; parser.selector = hotLongListSelector; parser.progressBar = progressBar; }
protected async override void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); if (App.fromTombStone) { NavigationService.Navigate(new Uri("/MainPage.xaml", UriKind.Relative)); } else { if (e.NavigationMode == NavigationMode.New) { string msg = ""; if (NavigationContext.QueryString.TryGetValue("msg", out msg)) { parser = new SearchJsonParser(msg); await search(); } } } }