public MainWindow(string dumpDir, string miniDumpId, string productName, string version, sendEnum sendChoice) { this.miniDumpId = miniDumpId; this.productName = productName; this.dumpDir = dumpDir; this.sendChoice = sendChoice; this.version = version; if (this.sendChoice == sendEnum.SendAutomatically) { this.sendError(); /* * Process explorer = new Process(); * explorer.StartInfo.FileName = "explorer.exe"; * explorer.Start(); */ App.Current.Shutdown(); } InitializeComponent(); }
private void registerPref(sendEnum pref) { Registry.SetValue("HKEY_CURRENT_USER\\Software\\VistaMetadataProject", "AutoCrashReporting", (int)pref, RegistryValueKind.DWord); }