public void End() { CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync( CoreDispatcherPriority.High, new DispatchedHandler(() => { DownManager.ShowDialog("下载完毕"); this.text.Text = ""; }) ); }
public void Start(int len) { down.len = len; down.index = 0; CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync( CoreDispatcherPriority.High, new DispatchedHandler(() => { this.text.Text = 0 + "/" + len; DownManager.ShowDialog("开始下载"); })); }
/// <summary> /// xfang 下载 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void customMTC_Downloaded(object sender, EventArgs e) { Debug.WriteLine("click Download"); DownManager.DownloadShowAsync(playing, live, new down(downProgress)); }