2014-09-11 96 views

回答

1

您無法將匿名方法直接轉換爲System.Delegate - 您需要先將其包裝在Action中。

試試這個:

public void loadtemplist(DataTable dt) 
{ 
    this.Dispatcher.BeginInvoke(DispatcherPriority.ApplicationIdle, 

     new Action(() => { this.loadtemplist1(dt); }) 
    ); 
} 
0

你應該做的

this.Dispatcher.BeginInvoke(DispatcherPriority.ApplicationIdle, 
          new Action(() => this.loadtemplist1(dt))); 

看到演示:https://dotnetfiddle.net/nz9xxD

相關問題