mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
UI Tweaks
This commit is contained in:
@@ -210,19 +210,31 @@ namespace GHelper
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void VisualiseNewCount(int updatesCount, TableLayoutPanel table)
|
public void VisualiseNewCount(int updatesCount, TableLayoutPanel table)
|
||||||
|
{
|
||||||
|
if (InvokeRequired)
|
||||||
|
{
|
||||||
|
Invoke(delegate
|
||||||
|
{
|
||||||
|
_VisualiseNewCount(updatesCount, table);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_VisualiseNewCount(updatesCount, table);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void _VisualiseNewCount(int updatesCount, TableLayoutPanel table)
|
||||||
{
|
{
|
||||||
Invoke(delegate
|
Invoke(delegate
|
||||||
{
|
{
|
||||||
labelUpdates.Text = $"{Properties.Strings.NewUpdates}: {updatesCount}";
|
labelUpdates.Text = $"{Properties.Strings.NewUpdates}: {updatesCount}";
|
||||||
labelUpdates.ForeColor = colorTurbo;
|
labelUpdates.ForeColor = colorTurbo;
|
||||||
labelUpdates.Font = new Font(labelUpdates.Font, FontStyle.Bold);
|
labelUpdates.Font = new Font(labelUpdates.Font, FontStyle.Bold);
|
||||||
|
|
||||||
panelBios.AccessibleName = labelUpdates.Text;
|
panelBios.AccessibleName = labelUpdates.Text;
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static string CleanupDeviceId(string input)
|
static string CleanupDeviceId(string input)
|
||||||
{
|
{
|
||||||
int index = input.IndexOf("&REV_");
|
int index = input.IndexOf("&REV_");
|
||||||
|
|||||||
Reference in New Issue
Block a user