Example #1
0
        public static void UpdateAllLiveTiles()
        {
            LiveTileHelper.CleanupUnpinnedTilesResources();

            /*
             * //Calculate Savings, Incomes, Expenses Amount
             * App.ViewModel.UpdateSumStats();
             *
             * try{
             * //Update Savings Tile
             *  UpdateLiveTile("Savings", "Total Savings", "",
             *      "/Views/MainPage.xaml", "savingstile_173x173.png", "tile_173x173_back.png");
             * }
             * catch (Exception ex)
             * {
             *  //MessageBox.Show(ex.Message);
             *  System.Diagnostics.Debug.WriteLine(ex.StackTrace);
             * }
             *
             * try{
             *  //Update Incomes Tile
             *  UpdateLiveTile("Incomes", "Total Incomes", "",
             *      "/Views/AllIncomes.xaml", "incomestile_173x173.png", "tile_173x173_back.png");
             * }
             * catch (Exception ex)
             * {
             *  //MessageBox.Show(ex.Message);
             *  System.Diagnostics.Debug.WriteLine(ex.StackTrace);
             * }
             *
             * try{
             *  //Update Expenses Tile
             *  UpdateLiveTile("Expenses", "Total Expenses", "",
             *  "/Views/AllExpenses.xaml", "expensestile_173x173.png", "tile_173x173_back.png");
             * }
             * catch (Exception ex)
             * {
             *  //MessageBox.Show(ex.Message);
             *  System.Diagnostics.Debug.WriteLine(ex.StackTrace);
             * }
             *
             * //!ONHOLD: Update Category Tiles
             *
             */
        }