private void buttonLaunch_Click(object sender, EventArgs e) { try { // Check for patch requirements if (!PatchInfo.CheckForRequirements(patches)) { return; } // Check for patch conflicts if (!PatchInfo.CheckForConflicts(patches)) { return; } // Save config SaveControls(); config.Save(); // Error Handling if (!CheckForErrors()) { return; } // Launch Process.Start(config.portPath, BuildCommandLine()); } catch (Exception ex) { Utils.ShowError(ex); } }
private void buttonCopyCommandClipboard_Click(object sender, EventArgs e) { PatchInfo.CheckForRequirements(patches); PatchInfo.CheckForConflicts(patches); SaveControls(); config.Save(); Clipboard.SetText("\"" + config.portPath + "\"" + BuildCommandLine()); }