public void UpdateLiveTile() { try { LiveTile l = new LiveTile(); l.SendStockTileNotification("BTC", App.BTC_now, App.BTC_change1h, DateTime.Now); l.SendStockTileNotification("ETH", App.ETH_now, App.ETH_change1h, DateTime.Now); l.SendStockTileNotification("LTC", App.LTC_now, App.LTC_change1h, DateTime.Now); } catch (Exception ex) { var dontWait = new MessageDialog(ex.ToString()).ShowAsync(); } }
public void UpdateLiveTile() { try { LiveTile l = new LiveTile(); //TO DO: I used to use App.BTC_change1h as the third param //SendStockTileNotification("BTC", App.BTC_now, App.BTC_change1h, DateTime.Now); //l.SendStockTileNotification("BTC", 0, 0, DateTime.Now); //l.SendStockTileNotification("ETH", 0, 0, DateTime.Now); //l.SendStockTileNotification("LTC", 0, 0, DateTime.Now); } catch (Exception ex) { new MessageDialog(ex.ToString()).ShowAsync(); } }
//////////////////////////////////////////////////////////////////////////////////////// internal void UpdateButton_Click(object sender, RoutedEventArgs e) { switch (rootFrame.SourcePageType.Name) { case "CoinDetails": var p0 = (CoinDetails)rootFrame.Content; p0.UpdatePage(); break; case "Home": var p2 = (Home)rootFrame.Content; p2.UpdateHome(); break; case "Portfolio": var p1 = (Portfolio)rootFrame.Content; p1.UpdatePortfolio(); break; } LiveTile l = new LiveTile(); l.UpdateLiveTile(); }