示例#1
0
        // 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();
        }
示例#2
0
        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();
        }