Skip to content

Commit ca07c33

Browse files
committed
Fixed NetGraphForm window caption shown by Windows in some circumstances.
1 parent e29ef68 commit ca07c33

File tree

4 files changed

+83
-77
lines changed

4 files changed

+83
-77
lines changed

Source/Forms/NetGraphForm.Designer.cs

Lines changed: 74 additions & 75 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Source/Forms/NetGraphForm.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ public partial class NetGraphForm : Form {
2626
public NetGraphForm() {
2727
InitializeComponent();
2828

29+
Text = UdmApplication.ProductName;
30+
2931
toolbox.BackColor = BackColor.Desaturate(.15f).Darken(.14f);
3032

3133
sampler = netGraph.Sampler = new NetworkInterfaceSampler();

Source/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@
3131
// You can specify all the values or you can default the Build and Revision Numbers
3232
// by using the '*' as shown below:
3333
// [assembly: AssemblyVersion("1.0.*")]
34-
[assembly: AssemblyVersion("1.2.0.0")]
35-
[assembly: AssemblyFileVersion("1.2.0.0")]
34+
[assembly: AssemblyVersion("1.2.1.0")]
35+
[assembly: AssemblyFileVersion("1.2.1.0")]

Source/UdmApplication.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ public UdmApplication(Form mainForm) {
1313
mainForm.FormClosed += delegate { ExitThread(); };
1414
}
1515

16+
public static string ProductName
17+
{
18+
get { return Application.ProductName; }
19+
}
20+
1621
public static string CanonicalProductVersion
1722
{
1823
get

0 commit comments

Comments
 (0)