protected void Abort(string message, bool closeDialog) { if (_stopped || _aborting) { return; } _aborting = true; OnAbort(message, closeDialog); }
private void Exit() { if (_modemTask != null) { _modemTask.Abort(); _modemTask = null; } _executing = false; _okButton.Enabled = true; _fileNameBox.Enabled = true; _selectButton.Enabled = true; _protocolBox.Enabled = true; _directionBox.Enabled = true; }