private void BtnClearKey_Click(object sender, EventArgs e) { if (ValidateForm(this)) { OA3_Action oaAction = new OA3_Action(); oaAction._SelectedMotherBoardText = gbMB.Controls.OfType <RadioButton>().FirstOrDefault(r => r.Checked).Text; oaAction._OutputPath = _OutputPath; oaAction._DriveLetter = _MappedDrive; oaAction.ClearKey(); //close all programs and restart the computer Restart(); } }