private void OnCompleted() { Dispatcher.Invoke(() => { ClientFileItem.SetText("Ready!"); ClientFileItem.SetProgress(0); ClientFileItem.SetTotalProgress(100); PlayButton.IsEnabled = true; }); }
private void OnFileChange(string s) => Dispatcher.Invoke(() => ClientFileItem.SetText(s));
private void OnDownloadProgressChange(double d) => Dispatcher.Invoke(() => ClientFileItem.SetProgress((int)d));
private void OnTotalProgressChange(double d) => Dispatcher.Invoke(() => ClientFileItem.SetTotalProgress(d));