mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Generate battery report when clicking on battery health #2311
This commit is contained in:
5
app/Settings.Designer.cs
generated
5
app/Settings.Designer.cs
generated
@@ -1408,6 +1408,7 @@ namespace GHelper
|
||||
labelCharge.Size = new Size(461, 56);
|
||||
labelCharge.TabIndex = 40;
|
||||
labelCharge.TextAlign = ContentAlignment.MiddleRight;
|
||||
labelCharge.Cursor = Cursors.Hand;
|
||||
//
|
||||
// panelPeripherals
|
||||
//
|
||||
@@ -1705,6 +1706,7 @@ namespace GHelper
|
||||
//
|
||||
// labelVisual
|
||||
//
|
||||
labelVisual.Cursor = Cursors.Hand;
|
||||
labelVisual.ForeColor = SystemColors.GrayText;
|
||||
labelVisual.Location = new Point(20, 170);
|
||||
labelVisual.Margin = new Padding(4, 0, 4, 0);
|
||||
@@ -1714,7 +1716,6 @@ namespace GHelper
|
||||
labelVisual.TabIndex = 42;
|
||||
labelVisual.Text = "Visual Modes are not available when HDR is active";
|
||||
labelVisual.Visible = false;
|
||||
labelVisual.Cursor = Cursors.Hand;
|
||||
//
|
||||
// tableVisual
|
||||
//
|
||||
@@ -1875,7 +1876,7 @@ namespace GHelper
|
||||
AutoScaleMode = AutoScaleMode.Dpi;
|
||||
AutoSize = true;
|
||||
AutoSizeMode = AutoSizeMode.GrowAndShrink;
|
||||
ClientSize = new Size(849, 1559);
|
||||
ClientSize = new Size(849, 2045);
|
||||
Controls.Add(panelFooter);
|
||||
Controls.Add(panelVersion);
|
||||
Controls.Add(panelBattery);
|
||||
|
||||
@@ -257,11 +257,18 @@ namespace GHelper
|
||||
buttonFnLock.Click += ButtonFnLock_Click;
|
||||
|
||||
labelVisual.Click += LabelVisual_Click;
|
||||
labelCharge.Click += LabelCharge_Click;
|
||||
|
||||
panelPerformance.Focus();
|
||||
InitVisual();
|
||||
}
|
||||
|
||||
private void LabelCharge_Click(object? sender, EventArgs e)
|
||||
{
|
||||
ProcessHelper.RunCMD("powershell", "powercfg /batteryreport");
|
||||
ProcessHelper.RunCMD("explorer", "battery-report.html");
|
||||
}
|
||||
|
||||
private void LabelVisual_Click(object? sender, EventArgs e)
|
||||
{
|
||||
labelVisual.Visible = false;
|
||||
|
||||
Reference in New Issue
Block a user