diff --git a/app/AutoUpdate/AutoUpdateControl.cs b/app/AutoUpdate/AutoUpdateControl.cs index 8dba9d5d..dfd10d91 100644 --- a/app/AutoUpdate/AutoUpdateControl.cs +++ b/app/AutoUpdate/AutoUpdateControl.cs @@ -16,7 +16,8 @@ namespace GHelper.AutoUpdate public AutoUpdateControl(SettingsForm settingsForm) { settings = settingsForm; - settings.SetVersionLabel(Properties.Strings.VersionLabel + ": " + Assembly.GetExecutingAssembly().GetName().Version); + var appVersion = new Version(Assembly.GetExecutingAssembly().GetName().Version.ToString()); + settings.SetVersionLabel(Properties.Strings.VersionLabel + $": {appVersion.Major}.{appVersion.Minor}.{appVersion.Build}"); } public void CheckForUpdates() diff --git a/app/Input/InputDispatcher.cs b/app/Input/InputDispatcher.cs index c0879d49..64db2e0a 100644 --- a/app/Input/InputDispatcher.cs +++ b/app/Input/InputDispatcher.cs @@ -545,9 +545,16 @@ namespace GHelper.Input try { - string executable = command.Split(' ')[0]; - string arguments = command.Substring(executable.Length).Trim(); - Process proc = Process.Start(executable, arguments); + + //string executable = command.Split(' ')[0]; + //string arguments = command.Substring(executable.Length).Trim(); + + ProcessStartInfo startInfo = new ProcessStartInfo(); + startInfo.UseShellExecute = true; + startInfo.WorkingDirectory = Environment.CurrentDirectory; + startInfo.FileName = command; + //startInfo.Arguments = arguments; + Process proc = Process.Start(startInfo); } catch { diff --git a/app/Properties/Resources.Designer.cs b/app/Properties/Resources.Designer.cs index db1ad45f..7b788858 100644 --- a/app/Properties/Resources.Designer.cs +++ b/app/Properties/Resources.Designer.cs @@ -360,6 +360,16 @@ namespace GHelper.Properties { } } + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap icons8_quit_32 { + get { + object obj = ResourceManager.GetObject("icons8-quit-32", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// @@ -440,6 +450,16 @@ namespace GHelper.Properties { } } + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap icons8_software_32_white { + get { + object obj = ResourceManager.GetObject("icons8-software-32-white", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// diff --git a/app/Properties/Resources.resx b/app/Properties/Resources.resx index dae79172..ffee67b5 100644 --- a/app/Properties/Resources.resx +++ b/app/Properties/Resources.resx @@ -118,24 +118,30 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - ..\Resources\icons8-gauge-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - ..\Resources\brightness-up.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\icons8-temperature-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\Resources\backlight-down.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\Resources\icons8-mute-unmute-96.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\icons8-quit-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\Resources\icons8-fiat-500-48.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\Resources\icons8-microphone-96.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\icons8-voltage-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\Resources\icons8-project-management-48 (1).png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -145,6 +151,9 @@ ..\Resources\icons8-touchpad-96.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\icons8-automation-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\Resources\icons8-help-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -154,8 +163,8 @@ ..\Resources\icons8-game-controller-48.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\Resources\icons8-matrix-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\icons8-video-48.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\Resources\icons8-refresh-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -181,6 +190,12 @@ ..\Resources\eco.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\icons8-video-card-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\icons8-rocket-48.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\Resources\icons8-edit-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -208,8 +223,20 @@ ..\Resources\icons8-remove-64.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\Resources\icons8-video-48.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\icons8-matrix-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\icons8-keyboard-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\icons8-fan-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\icons8-software-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\icons8-gauge-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\Resources\icons8-leaf-48.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -217,43 +244,22 @@ ..\Resources\ultimate.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\Resources\icons8-rocket-48.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - ..\Resources\backlight.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\Resources\icons8-settings-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\Resources\icons8-keyboard-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Resources\icons8-automation-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\icons8-processor-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\Resources\icons8-laptop-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\Resources\icons8-video-card-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Resources\icons8-fan-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Resources\icons8-processor-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - ..\Resources\icons8-rocket-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\Resources\icons8-software-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Resources\icons8-temperature-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Resources\icons8-voltage-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\icons8-software-32-white.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a \ No newline at end of file diff --git a/app/Resources/icons8-quit-32.png b/app/Resources/icons8-quit-32.png new file mode 100644 index 00000000..3db87ccd Binary files /dev/null and b/app/Resources/icons8-quit-32.png differ diff --git a/app/Resources/icons8-software-32-white.png b/app/Resources/icons8-software-32-white.png new file mode 100644 index 00000000..3ee2865d Binary files /dev/null and b/app/Resources/icons8-software-32-white.png differ diff --git a/app/Settings.Designer.cs b/app/Settings.Designer.cs index 17a31b32..1153bbe2 100644 --- a/app/Settings.Designer.cs +++ b/app/Settings.Designer.cs @@ -46,6 +46,7 @@ namespace GHelper pictureBattery = new PictureBox(); labelBatteryTitle = new Label(); panelFooter = new Panel(); + buttonKeyboard = new RButton(); buttonUpdates = new RButton(); buttonQuit = new RButton(); checkStartup = new CheckBox(); @@ -85,7 +86,6 @@ namespace GHelper labelSreen = new Label(); panelKeyboard = new Panel(); tableLayoutKeyboard = new TableLayoutPanel(); - buttonKeyboard = new RButton(); panelColor = new Panel(); pictureColor2 = new PictureBox(); pictureColor = new PictureBox(); @@ -95,8 +95,8 @@ namespace GHelper pictureKeyboard = new PictureBox(); labelKeyboard = new Label(); labelVersion = new Label(); - labelModel = new Label(); panelVersion = new Panel(); + tableLayoutPanel1 = new TableLayoutPanel(); panelMatrix.SuspendLayout(); tableLayoutMatrix.SuspendLayout(); panelMatrixTitle.SuspendLayout(); @@ -125,6 +125,7 @@ namespace GHelper panelKeyboardTitle.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)pictureKeyboard).BeginInit(); panelVersion.SuspendLayout(); + tableLayoutPanel1.SuspendLayout(); SuspendLayout(); // // panelMatrix @@ -335,33 +336,56 @@ namespace GHelper // panelFooter.AutoSize = true; panelFooter.AutoSizeMode = AutoSizeMode.GrowAndShrink; - panelFooter.Controls.Add(buttonUpdates); - panelFooter.Controls.Add(buttonQuit); - panelFooter.Controls.Add(checkStartup); + panelFooter.Controls.Add(tableLayoutPanel1); panelFooter.Dock = DockStyle.Top; panelFooter.Location = new Point(11, 1236); panelFooter.Margin = new Padding(0); panelFooter.Name = "panelFooter"; panelFooter.Padding = new Padding(20); - panelFooter.Size = new Size(811, 92); + panelFooter.Size = new Size(811, 96); panelFooter.TabIndex = 7; // + // buttonKeyboard + // + buttonKeyboard.AccessibleName = "Extra Settings"; + buttonKeyboard.Activated = false; + buttonKeyboard.BackColor = SystemColors.ControlLight; + buttonKeyboard.BorderColor = Color.Transparent; + buttonKeyboard.BorderRadius = 2; + buttonKeyboard.Dock = DockStyle.Top; + buttonKeyboard.FlatAppearance.BorderSize = 0; + buttonKeyboard.FlatStyle = FlatStyle.Flat; + buttonKeyboard.Image = Properties.Resources.icons8_settings_32; + buttonKeyboard.ImageAlign = ContentAlignment.MiddleRight; + buttonKeyboard.Location = new Point(4, 4); + buttonKeyboard.Margin = new Padding(4); + buttonKeyboard.Name = "buttonKeyboard"; + buttonKeyboard.Secondary = true; + buttonKeyboard.Size = new Size(248, 48); + buttonKeyboard.TabIndex = 24; + buttonKeyboard.Text = Properties.Strings.Extra; + buttonKeyboard.TextImageRelation = TextImageRelation.ImageBeforeText; + buttonKeyboard.UseVisualStyleBackColor = false; + // // buttonUpdates // buttonUpdates.AccessibleName = "BIOS and Driver Updates"; buttonUpdates.Activated = false; - buttonUpdates.Anchor = AnchorStyles.Top | AnchorStyles.Right; buttonUpdates.BackColor = SystemColors.ControlLight; buttonUpdates.BorderColor = Color.Transparent; buttonUpdates.BorderRadius = 2; + buttonUpdates.Dock = DockStyle.Top; buttonUpdates.FlatStyle = FlatStyle.Flat; - buttonUpdates.Location = new Point(412, 24); - buttonUpdates.Margin = new Padding(8, 4, 8, 4); + buttonUpdates.Image = Properties.Resources.icons8_software_32_white; + buttonUpdates.ImageAlign = ContentAlignment.MiddleRight; + buttonUpdates.Location = new Point(260, 4); + buttonUpdates.Margin = new Padding(4); buttonUpdates.Name = "buttonUpdates"; buttonUpdates.Secondary = true; - buttonUpdates.Size = new Size(180, 44); + buttonUpdates.Size = new Size(248, 48); buttonUpdates.TabIndex = 22; buttonUpdates.Text = "Updates"; + buttonUpdates.TextImageRelation = TextImageRelation.ImageBeforeText; buttonUpdates.UseVisualStyleBackColor = false; // // buttonQuit @@ -373,19 +397,19 @@ namespace GHelper buttonQuit.BorderColor = Color.Transparent; buttonQuit.BorderRadius = 2; buttonQuit.FlatStyle = FlatStyle.Flat; - buttonQuit.Location = new Point(606, 24); - buttonQuit.Margin = new Padding(8, 4, 8, 4); + buttonQuit.Image = Properties.Resources.icons8_quit_32; + buttonQuit.Location = new Point(703, 4); + buttonQuit.Margin = new Padding(4); buttonQuit.Name = "buttonQuit"; buttonQuit.Secondary = true; - buttonQuit.Size = new Size(180, 44); + buttonQuit.Size = new Size(64, 46); buttonQuit.TabIndex = 23; - buttonQuit.Text = Properties.Strings.Quit; buttonQuit.UseVisualStyleBackColor = false; // // checkStartup // checkStartup.AutoSize = true; - checkStartup.Location = new Point(27, 28); + checkStartup.Location = new Point(27, 12); checkStartup.Margin = new Padding(8, 4, 8, 4); checkStartup.Name = "checkStartup"; checkStartup.Size = new Size(206, 36); @@ -997,7 +1021,6 @@ namespace GHelper tableLayoutKeyboard.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 33F)); tableLayoutKeyboard.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 33F)); tableLayoutKeyboard.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 33F)); - tableLayoutKeyboard.Controls.Add(buttonKeyboard, 0, 0); tableLayoutKeyboard.Controls.Add(panelColor, 0, 0); tableLayoutKeyboard.Controls.Add(comboKeyboard, 0, 0); tableLayoutKeyboard.Dock = DockStyle.Top; @@ -1009,28 +1032,6 @@ namespace GHelper tableLayoutKeyboard.Size = new Size(771, 60); tableLayoutKeyboard.TabIndex = 39; // - // buttonKeyboard - // - buttonKeyboard.AccessibleName = "Extra Settings"; - buttonKeyboard.Activated = false; - buttonKeyboard.BackColor = SystemColors.ControlLight; - buttonKeyboard.BorderColor = Color.Transparent; - buttonKeyboard.BorderRadius = 2; - buttonKeyboard.Dock = DockStyle.Top; - buttonKeyboard.FlatAppearance.BorderSize = 0; - buttonKeyboard.FlatStyle = FlatStyle.Flat; - buttonKeyboard.Image = Properties.Resources.icons8_settings_32; - buttonKeyboard.ImageAlign = ContentAlignment.MiddleRight; - buttonKeyboard.Location = new Point(518, 8); - buttonKeyboard.Margin = new Padding(4, 8, 4, 8); - buttonKeyboard.Name = "buttonKeyboard"; - buttonKeyboard.Secondary = true; - buttonKeyboard.Size = new Size(249, 44); - buttonKeyboard.TabIndex = 15; - buttonKeyboard.Text = Properties.Strings.Extra; - buttonKeyboard.TextImageRelation = TextImageRelation.ImageBeforeText; - buttonKeyboard.UseVisualStyleBackColor = false; - // // panelColor // panelColor.AutoSize = true; @@ -1135,32 +1136,22 @@ namespace GHelper // // labelVersion // + labelVersion.Anchor = AnchorStyles.Top | AnchorStyles.Right; labelVersion.Cursor = Cursors.Hand; labelVersion.Font = new Font("Segoe UI", 9F, FontStyle.Underline, GraphicsUnit.Point); labelVersion.ForeColor = SystemColors.ControlDark; - labelVersion.Location = new Point(28, 12); + labelVersion.Location = new Point(487, 12); labelVersion.Margin = new Padding(8, 0, 8, 0); labelVersion.Name = "labelVersion"; labelVersion.Size = new Size(300, 32); labelVersion.TabIndex = 37; labelVersion.Text = "v.0"; - // - // labelModel - // - labelModel.Anchor = AnchorStyles.Top | AnchorStyles.Right; - labelModel.Font = new Font("Segoe UI", 9F, FontStyle.Regular, GraphicsUnit.Point); - labelModel.ForeColor = SystemColors.ControlDark; - labelModel.Location = new Point(380, 12); - labelModel.Margin = new Padding(8, 0, 8, 0); - labelModel.Name = "labelModel"; - labelModel.Size = new Size(400, 32); - labelModel.TabIndex = 38; - labelModel.TextAlign = ContentAlignment.TopRight; + labelVersion.TextAlign = ContentAlignment.TopRight; // // panelVersion // panelVersion.Controls.Add(labelVersion); - panelVersion.Controls.Add(labelModel); + panelVersion.Controls.Add(checkStartup); panelVersion.Dock = DockStyle.Top; panelVersion.Location = new Point(11, 1180); panelVersion.Margin = new Padding(4); @@ -1168,6 +1159,24 @@ namespace GHelper panelVersion.Size = new Size(811, 56); panelVersion.TabIndex = 6; // + // tableLayoutPanel1 + // + tableLayoutPanel1.AutoSize = true; + tableLayoutPanel1.ColumnCount = 3; + tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 33.3333321F)); + tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 33.3333321F)); + tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 33.3333321F)); + tableLayoutPanel1.Controls.Add(buttonKeyboard, 0, 0); + tableLayoutPanel1.Controls.Add(buttonQuit, 2, 0); + tableLayoutPanel1.Controls.Add(buttonUpdates, 1, 0); + tableLayoutPanel1.Dock = DockStyle.Top; + tableLayoutPanel1.Location = new Point(20, 20); + tableLayoutPanel1.Name = "tableLayoutPanel1"; + tableLayoutPanel1.RowCount = 1; + tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 100F)); + tableLayoutPanel1.Size = new Size(771, 56); + tableLayoutPanel1.TabIndex = 25; + // // SettingsForm // AutoScaleDimensions = new SizeF(192F, 192F); @@ -1233,6 +1242,8 @@ namespace GHelper panelKeyboardTitle.PerformLayout(); ((System.ComponentModel.ISupportInitialize)pictureKeyboard).EndInit(); panelVersion.ResumeLayout(false); + panelVersion.PerformLayout(); + tableLayoutPanel1.ResumeLayout(false); ResumeLayout(false); PerformLayout(); } @@ -1274,7 +1285,6 @@ namespace GHelper private Label labelTipScreen; private RButton buttonMiniled; private RButton buttonMatrix; - private RButton buttonKeyboard; private RButton buttonKeyboardColor; private RButton buttonFans; private Slider sliderBattery; @@ -1303,7 +1313,8 @@ namespace GHelper private Label labelBatteryTitle; private Panel panelVersion; private Label labelVersion; - private Label labelModel; private RButton buttonStopGPU; + private RButton buttonKeyboard; + private TableLayoutPanel tableLayoutPanel1; } } \ No newline at end of file diff --git a/app/Settings.cs b/app/Settings.cs index dc41231b..1773b8fa 100644 --- a/app/Settings.cs +++ b/app/Settings.cs @@ -75,7 +75,7 @@ namespace GHelper checkStartup.Text = Properties.Strings.RunOnStartup; buttonMatrix.Text = Properties.Strings.PictureGif; - buttonQuit.Text = Properties.Strings.Quit; + //buttonQuit.Text = Properties.Strings.Quit; buttonUpdates.Text = Properties.Strings.Updates; FormClosing += SettingsForm_FormClosing; @@ -181,7 +181,7 @@ namespace GHelper labelBattery.MouseLeave += PanelBattery_MouseLeave; labelBatteryTitle.MouseLeave += PanelBattery_MouseLeave; - labelModel.Text = AppConfig.GetModelShort() + (ProcessHelper.IsUserAdministrator() ? "." : ""); + Text = "G-Helper - " + AppConfig.GetModelShort() + (ProcessHelper.IsUserAdministrator() ? "." : ""); TopMost = AppConfig.Is("topmost"); SetContextMenu(); diff --git a/app/Updates.cs b/app/Updates.cs index 0c4499a7..b59a1d0d 100644 --- a/app/Updates.cs +++ b/app/Updates.cs @@ -25,10 +25,10 @@ namespace GHelper static int updatesCount = 0; private static long lastUpdate; - private void LoadUpdates() + private void LoadUpdates(bool force = false) { - if (Math.Abs(DateTimeOffset.Now.ToUnixTimeMilliseconds() - lastUpdate) < 5000) return; + if (!force && (Math.Abs(DateTimeOffset.Now.ToUnixTimeMilliseconds() - lastUpdate) < 5000)) return; lastUpdate = DateTimeOffset.Now.ToUnixTimeMilliseconds(); InitBiosAndModel(); @@ -77,7 +77,7 @@ namespace GHelper InitTheme(true); - LoadUpdates(); + LoadUpdates(true); //buttonRefresh.Visible = false; buttonRefresh.Click += ButtonRefresh_Click;