public Support(PwrMzrManager pm, string dbgtxt) { InitializeComponent(); this.pwrmgr = pm; this.debugtext = dbgtxt; string text; text = "This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.\n\n"; text += "Feedback is welcome. If you want to report a bug, please USE THE COLLECT INFO BUTTON. It will generate a zip file with some relevant registry keys, and the content of the debug console (you can check its contents before sending it). Send it by email to the address stated below.\nNo zip file attached=>God kills a kitten.\n\n"; text += "This program uses in some way:\n Mentalis WindowsController Library (http://mentalis.org)\n\t Justin Grant's DeviceHelper Library (http://www.justingrant.net)\n\t DotNetZip Library (http://dotnetzip.codeplex.com) "; this.labelText.Text = text; }
private void Initialize() { this._log_console.Clear(); log("***** Welcome to NVidia PowerMizer Manager***** "); log("Initializing..."); //Initialize the powermizer manager try { this.pwrmzrManager = new PwrMzrManager(); //Do we want to debug powerMizerManager? this.pwrmzrManager.Log_Console = this._log_console; //initialize powermizerManager this.pwrmzrManager.initialize(); //SLI SUPPORT if (Properties.Settings.Default.SLIModeEnabled == true) { this.Text = "NVidia PowerMizer Manager *Experimental SLI Mode*"; this.labelSLI.Visible = true; } else { this.Text = "NVidia PowerMizer Manager"; this.labelSLI.Visible = false; } log("Checking if PowerMizer Settings are present..."); if (!this.pwrmzrManager.powermizerSettingsExist()) { //No values for powermizer settings. Block the form until they're created this.groupBoxSelect.Enabled = false; this.groupBoxApply.Enabled = false; this.groupBoxOther.Enabled = false; this.buttonInsert.Enabled = true; this.buttonDelete.Enabled = false; logsub("PowerMizer settings not found. You need create the necessary registry entries in step 1. It is highly recommended to perform a backup first!"); MessageBox.Show("PowerMizer settings not found. You need create the necessary registry entries in step 1. It is highly recommended to perform a backup first!", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information); return; } else { logsub("PowerMizer Settings found."); this.buttonInsert.Enabled = false; this.buttonDelete.Enabled = true; this.groupBoxSelect.Enabled = true; this.groupBoxApply.Enabled = true; this.groupBoxOther.Enabled = true; } } catch { //All errors logged //We want the whole dialog blocked this.groupBoxCheck.Enabled = false; this.groupBoxSelect.Enabled = false; this.groupBoxApply.Enabled = false; this.groupBoxOther.Enabled = false; MessageBox.Show("NVidia registry key not found. Check debug console for more details.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); return; } //ok, go ahead and initialize frame 2 this.InitializeSettingsControls(); //Add the tooltip to the Instant Apply! button ToolTip Tip1 = new ToolTip(); Tip1.AutoPopDelay = 15000; Tip1.UseAnimation = true; Tip1.UseFading = true; Tip1.ToolTipIcon = ToolTipIcon.Info; Tip1.IsBalloon = true; Tip1.ShowAlways = true; Tip1.ToolTipTitle = "Insane Instant Apply!"; string message1 = "\nInstant Apply! will apply your settings and reload the video driver without the need of a reboot.\n\nHolding the \"Shift Key\" while clicking on this button, will skip all further checks and confirmations, speeding up the process even more.\nPlease use it **only** if you're sure that the configuration you're applying has already been tested before!!!!."; Tip1.SetToolTip(this.buttonApplyNow, message1); }