// Load data for the ViewModel Items private void MainPage_Loaded(object sender, RoutedEventArgs e) { loadData(); Thread t = new Thread(() => { while (!loaded) { Thread.Sleep(5000); wep_Changedevent(); } }); t.Start(); HelperMetjods.getFutureArticles(); }
private void ResetArticles() { Thread t = new Thread(() => { try { List <Article> articles = new List <Article>(); try { articles = (List <Article>)userSettings["Articles"]; } catch { } articles.Clear(); HelperMetjods.UpdateOrAdd(userSettings, "Articles", articles); HelperMetjods.getFutureArticles(); } catch { } }); t.Start(); }