private bool StartSend() { try { _xmodemTask = new XModemSender(_connectionTag, _fileNameBox.Text); _xmodemTask.NotifyTarget = this.Handle; _xmodemTask.Start(); return true; } catch(Exception ex) { GUtil.Warning(this, ex.Message); return false; } }
private void Exit() { if(_xmodemTask!=null) { _xmodemTask.Abort(); _xmodemTask = null; } _executing = false; _okButton.Enabled = true; _fileNameBox.Enabled = true; _selectButton.Enabled = true; }