private void CloseButton_Click(object sender, EventArgs e) { if (_process != null) { _process = null; _patches.CloseHandle(); StatusTextBox.Text = "Closed."; ProcessNameTextBox.Text = String.Empty; ProcessIDTextBox.Text = String.Empty; AvailablePatchesListBox.Enabled = false; ApplyButton.Enabled = false; } }