Example #1
0
 private async Task UpdateDownloadBitrateAsync(uint downloadBitrate)
 {
     await this.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, new DispatchedHandler(() =>
     {
         iconDownloadBitrate.Symbol = bitrateHelper.GetBitrateSymbol(downloadBitrate);
         txtDownloadBitrate.Text = downloadBitrate.ToString();
     }));
 }
 private async Task UpdateDownloadBitrateAsync(uint downloadBitrate)
 {
     Log($"DownloadBitrateChanged: {downloadBitrate}");
     await this.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
     {
         iconDownloadBitrate.Symbol = bitrateHelper.GetBitrateSymbol(downloadBitrate);
         txtDownloadBitrate.Text    = downloadBitrate.ToString();
     });
 }