void RunAsynch() { // let's run the model in a seperate thread so UI can update... _processAsync = new ProcessAllDelegate(ProcessAll); //_asyncResult = _processAsync.BeginInvoke(null, null); _asyncResult = _processAsync.BeginInvoke(new AsyncCallback(AsyncCallback), _processAsync); //_waitForComplete = new WatchForCompleteDelegate(WatchForComplete); //_waitResult = _waitForComplete.BeginInvoke(null, null); }
public void RunDialog_Activated(object sender, System.EventArgs a) { if (!_hasRun) { statusTextBox.Text = ""; // let's run the model in a seperate thread so UI can update... ProcessAllDelegate processAll = new ProcessAllDelegate(ProcessAll); processAll.BeginInvoke(null, null); _hasRun = true; } }
void RunAsynch() { // let's run the model in a seperate thread so UI can update... _processAsync = new ProcessAllDelegate(ProcessAll); _asyncResult = _processAsync.BeginInvoke(_workbook, null, null); //ProcessAllDelegate processAll = new ProcessAllDelegate(ProcessAll); //processAll.BeginInvoke(_workbook, null, null); }