summaryrefslogtreecommitdiff
path: root/Aktywator
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-07-27 14:20:46 +0200
committeremkael <emkael@tlen.pl>2017-07-27 14:20:46 +0200
commit2258d181b8dfab45d73812bdc1ddc2d4aaff1817 (patch)
treeb6f140e4cc58b088657917d37aafa84654bc66f2 /Aktywator
parent1a6e46fb0a4726093509723a71512868fe6eaa40 (diff)
Displaying required versions in checkbox tooltips
Diffstat (limited to 'Aktywator')
-rw-r--r--Aktywator/MainForm.cs18
1 files changed, 18 insertions, 0 deletions
diff --git a/Aktywator/MainForm.cs b/Aktywator/MainForm.cs
index 039ab72..5e90be1 100644
--- a/Aktywator/MainForm.cs
+++ b/Aktywator/MainForm.cs
@@ -82,6 +82,24 @@ namespace Aktywator
foreach (Setting s in this.bwsSettings)
{
s.field.CheckedChanged += new EventHandler(setting_field_CheckedChanged);
+ StringBuilder tBuilder = new StringBuilder();
+ if (s.bcsV != null)
+ {
+ tBuilder.Append("BCS >= ");
+ tBuilder.Append(s.bcsV);
+ tBuilder.Append(", ");
+ }
+ if (s.fwV != null)
+ {
+ tBuilder.Append("firmware >= ");
+ tBuilder.Append(s.fwV);
+ }
+ String title = tBuilder.ToString().Trim().Trim(',');
+ if (!("".Equals(title)))
+ {
+ ToolTip tip = new ToolTip();
+ tip.SetToolTip(s.field, title);
+ }
}
}