示例#1
0
        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);
        }
示例#2
0
        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;
            }
        }
示例#3
0
 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);
 }