コード例 #1
0
 public void End()
 {
     CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(
         CoreDispatcherPriority.High,
         new DispatchedHandler(() => {
         DownManager.ShowDialog("下载完毕");
         this.text.Text = "";
     })
         );
 }
コード例 #2
0
 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("开始下载");
     }));
 }
コード例 #3
0
 /// <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));
 }