public ProgressDialogProgressState(ProgressDialogHandler _progressHandler): base() { this._progressHandler = _progressHandler; //System.Windows.Forms.Cursor.Current = System.Windows.Forms.Cursors.WaitCursor; if (_progressHandler != null) { _progressHandler.Cancelled += new EventHandler(_progressHandler_Cancelled); } }
public void Setup() { _dummyParentForm = new Form(); _dummyParentForm.Name = "dummy form"; _dummyParentForm.Text = "Dummy Form"; _dummyParentForm.Show(); Application.DoEvents(); _command = new TestCommand(); //_progressLog = ""; _progressHandler = new ProgressDialogHandler(_dummyParentForm, _command); _progressState = new ProgressDialogProgressState(_progressHandler); _commandFinishedCalled = false; }