private void cipherForm_CancelCipher(object sender, EventArgs e) { if (rsaFileCipher != null && rsaFileCipher.Status == ProcessStatus.Processing) { rsaFileCipher.Stop(); RefreshThread(); } else { cipherForm.DialogResult = DialogResult.Cancel; } }
public void Stop() { rsaFileCipher.Stop(); }