public void UpdateDataGrid(bool newInsert = false)
{
//ThreadSafe (updating datagridview from AddEventForm is not allowed otherwise
if (InvokeRequired)
{
Invoke(new Action(UpdateDataGrid));
}
else
{
Util.PopulateDataGridView(ref this.EventsDataGridView,newInsert);
}
}
オプションのパラメーターを new Action() に指定する方法がわかりません。
新しい Action(UpdateDataGrid) を試しましたが、まだランタイム エラーがスローされます。
ありがとう