示例#1
0
        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();
        }
示例#2
0
 private void registerPref(sendEnum pref)
 {
     Registry.SetValue("HKEY_CURRENT_USER\\Software\\VistaMetadataProject", "AutoCrashReporting", (int)pref, RegistryValueKind.DWord);
 }