Ejemplo n.º 1
0
        private void EndBindData(IAsyncResult iar)
        {
            tsStatus.Dispatcher.BeginInvoke(DispatcherPriority.Normal, new Action(delegate
            {
                tsStatus.Content   = "采集完毕,一共采集了" + this.movieCount + "部影片";
                btnStart.IsEnabled = true;
            }));
            BindDataAsync bindData = (BindDataAsync)iar.AsyncState;

            bindData.EndInvoke(iar);
        }
Ejemplo n.º 2
0
 private void BeginBindData()
 {
     BindDataAsync bindData = new BindDataAsync(BindData);
     IAsyncResult  iar      = bindData.BeginInvoke(new AsyncCallback(EndBindData), bindData);
 }