# HG changeset patch
# User moel.mich
# Date 1273920508 0
# Node ID 62a2848ec0a61c9425a19c5a323dff255e63e334
# Parent  69d29f1a2307bb4094dd245dc7d727390cc53ab8
Fixed Issue 57.

diff -r 69d29f1a2307 -r 62a2848ec0a6 GUI/MainForm.cs
--- a/GUI/MainForm.cs	Sat May 15 10:38:47 2010 +0000
+++ b/GUI/MainForm.cs	Sat May 15 10:48:28 2010 +0000
@@ -96,7 +96,12 @@
 
       Width = Utilities.Config.Get("mainForm.Width", Width);
       Height = Utilities.Config.Get("mainForm.Height", Height);
-         
+
+      foreach (TreeColumn column in treeView.Columns) 
+        column.Width = Math.Max(20, Math.Min(400, 
+          Config.Get("treeView.Columns." + column.Header + ".Width",
+          column.Width)));
+
       treeModel = new TreeModel();
       root = new Node(System.Environment.MachineName);
       root.Image = Utilities.EmbeddedResources.GetImage("computer.png");
@@ -267,6 +272,10 @@
         Config.Set("mainForm.Height", Height);
       }
 
+      foreach (TreeColumn column in treeView.Columns) 
+        Config.Set("treeView.Columns." + column.Header + ".Width", 
+          column.Width);
+
       timer.Enabled = false;
 
       sensorSystemTray.Dispose();