From 50ff0c1da10df84d8bc39d5ed8f9fb7db445f789 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez?= Date: Wed, 13 Feb 2013 12:06:45 +0000 Subject: [PATCH] Fixed a problem resizing panels of main window. Several panels was not resizing correctly from time to time. I have fixed it checking the Resize Event on Main panel control, and setting the size of the child to the parent size. Now it seems to work correctly (if it happens in more places, it will have to be done this way also) --- .../controls/panel/AuthsPanel.Designer.cs | 29 ++++++----- .../UdsAdmin/controls/panel/AuthsPanel.cs | 6 +++ .../UdsAdmin/controls/panel/AuthsPanel.resx | 24 ++++----- .../UdsAdmin/controls/panel/ChartPanel.cs | 3 +- .../panel/DeployedServicePanel.Designer.cs | 48 ++++++++--------- .../controls/panel/DeployedServicePanel.cs | 6 +++ .../controls/panel/DeployedServicePanel.resx | 52 +++++++++---------- .../panel/DeployedServicesPanel.Designer.cs | 4 +- .../controls/panel/DeployedServicesPanel.cs | 5 ++ .../controls/panel/DeployedServicesPanel.resx | 6 +-- .../UdsAdmin/controls/panel/LogViewer.cs | 2 + .../administration/UdsAdmin/gui/ActionTree.cs | 5 +- 12 files changed, 107 insertions(+), 83 deletions(-) diff --git a/client/administration/UdsAdmin/controls/panel/AuthsPanel.Designer.cs b/client/administration/UdsAdmin/controls/panel/AuthsPanel.Designer.cs index 5c50a61c..c0309c72 100644 --- a/client/administration/UdsAdmin/controls/panel/AuthsPanel.Designer.cs +++ b/client/administration/UdsAdmin/controls/panel/AuthsPanel.Designer.cs @@ -29,18 +29,31 @@ private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AuthsPanel)); + this.splitContainer1 = new UdsAdmin.controls.SplitContainerEx(); this.listView = new System.Windows.Forms.ListView(); this.name = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.typeName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.comments = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.priority = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); - this.splitContainer1 = new SplitContainerEx(); this.logViewer1 = new UdsAdmin.controls.panel.LogViewer(); this.splitContainer1.Panel1.SuspendLayout(); this.splitContainer1.Panel2.SuspendLayout(); this.splitContainer1.SuspendLayout(); this.SuspendLayout(); // + // splitContainer1 + // + resources.ApplyResources(this.splitContainer1, "splitContainer1"); + this.splitContainer1.Name = "splitContainer1"; + // + // splitContainer1.Panel1 + // + this.splitContainer1.Panel1.Controls.Add(this.listView); + // + // splitContainer1.Panel2 + // + this.splitContainer1.Panel2.Controls.Add(this.logViewer1); + // // listView // this.listView.AutoArrange = false; @@ -77,19 +90,6 @@ // resources.ApplyResources(this.priority, "priority"); // - // splitContainer1 - // - resources.ApplyResources(this.splitContainer1, "splitContainer1"); - this.splitContainer1.Name = "splitContainer1"; - // - // splitContainer1.Panel1 - // - this.splitContainer1.Panel1.Controls.Add(this.listView); - // - // splitContainer1.Panel2 - // - this.splitContainer1.Panel2.Controls.Add(this.logViewer1); - // // logViewer1 // resources.ApplyResources(this.logViewer1, "logViewer1"); @@ -102,6 +102,7 @@ this.Controls.Add(this.splitContainer1); this.Name = "AuthsPanel"; this.VisibleChanged += new System.EventHandler(this.UsersPanel_VisibleChanged); + this.Resize += new System.EventHandler(this.AuthsPanel_Resize); this.splitContainer1.Panel1.ResumeLayout(false); this.splitContainer1.Panel2.ResumeLayout(false); this.splitContainer1.ResumeLayout(false); diff --git a/client/administration/UdsAdmin/controls/panel/AuthsPanel.cs b/client/administration/UdsAdmin/controls/panel/AuthsPanel.cs index bd0c1bac..7df6c22d 100644 --- a/client/administration/UdsAdmin/controls/panel/AuthsPanel.cs +++ b/client/administration/UdsAdmin/controls/panel/AuthsPanel.cs @@ -131,5 +131,11 @@ namespace UdsAdmin.controls.panel logViewer1.setLogs(data.ToArray()); } + private void AuthsPanel_Resize(object sender, EventArgs e) + { + // Workaround to "dock" not fitting the content correctly + splitContainer1.Size = this.Size; + } + } } diff --git a/client/administration/UdsAdmin/controls/panel/AuthsPanel.resx b/client/administration/UdsAdmin/controls/panel/AuthsPanel.resx index 4c6d2071..5dc000c6 100644 --- a/client/administration/UdsAdmin/controls/panel/AuthsPanel.resx +++ b/client/administration/UdsAdmin/controls/panel/AuthsPanel.resx @@ -117,6 +117,17 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Top, Bottom, Left, Right + + + + 0, 0 + + + Horizontal + Name @@ -136,14 +147,12 @@ 73 - Fill False - 0, 0 @@ -165,15 +174,6 @@ 0 - - Fill - - - 0, 0 - - - Horizontal - splitContainer1.Panel1 @@ -241,7 +241,7 @@ splitContainer1 - System.Windows.Forms.SplitContainer, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + UdsAdmin.controls.SplitContainerEx, UdsAdmin, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null $this diff --git a/client/administration/UdsAdmin/controls/panel/ChartPanel.cs b/client/administration/UdsAdmin/controls/panel/ChartPanel.cs index f8a45987..6e8f8f87 100644 --- a/client/administration/UdsAdmin/controls/panel/ChartPanel.cs +++ b/client/administration/UdsAdmin/controls/panel/ChartPanel.cs @@ -14,6 +14,7 @@ namespace UdsAdmin.controls.panel public ChartPanel() { InitializeComponent(); + ResizeRedraw = true; } protected override void Dispose(bool disposing) @@ -29,8 +30,6 @@ namespace UdsAdmin.controls.panel { this.components = new System.ComponentModel.Container(); - this.DoubleBuffered = true; - System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new ChartArea(); System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend(); diff --git a/client/administration/UdsAdmin/controls/panel/DeployedServicePanel.Designer.cs b/client/administration/UdsAdmin/controls/panel/DeployedServicePanel.Designer.cs index a3056894..3150e386 100644 --- a/client/administration/UdsAdmin/controls/panel/DeployedServicePanel.Designer.cs +++ b/client/administration/UdsAdmin/controls/panel/DeployedServicePanel.Designer.cs @@ -31,8 +31,6 @@ System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DeployedServicePanel)); this.tabControl1 = new System.Windows.Forms.TabControl(); this.tabPage1 = new System.Windows.Forms.TabPage(); - this.tabPage2 = new System.Windows.Forms.TabPage(); - this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel(); this.splitContainer1 = new UdsAdmin.controls.SplitContainerEx(); this.panel1 = new System.Windows.Forms.Panel(); this.label4 = new System.Windows.Forms.Label(); @@ -56,24 +54,26 @@ this.label10 = new System.Windows.Forms.Label(); this.label7 = new System.Windows.Forms.Label(); this.logViewer1 = new UdsAdmin.controls.panel.LogViewer(); + this.tabPage2 = new System.Windows.Forms.TabPage(); + this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel(); this.inUseChart = new UdsAdmin.controls.panel.ChartPanel(); this.assignedChart = new UdsAdmin.controls.panel.ChartPanel(); this.tabControl1.SuspendLayout(); this.tabPage1.SuspendLayout(); - this.tabPage2.SuspendLayout(); - this.tableLayoutPanel2.SuspendLayout(); this.splitContainer1.Panel1.SuspendLayout(); this.splitContainer1.Panel2.SuspendLayout(); this.splitContainer1.SuspendLayout(); this.panel1.SuspendLayout(); this.tableLayoutPanel1.SuspendLayout(); + this.tabPage2.SuspendLayout(); + this.tableLayoutPanel2.SuspendLayout(); this.SuspendLayout(); // // tabControl1 // + resources.ApplyResources(this.tabControl1, "tabControl1"); this.tabControl1.Controls.Add(this.tabPage1); this.tabControl1.Controls.Add(this.tabPage2); - resources.ApplyResources(this.tabControl1, "tabControl1"); this.tabControl1.Name = "tabControl1"; this.tabControl1.SelectedIndex = 0; this.tabControl1.SelectedIndexChanged += new System.EventHandler(this.tabControl1_SelectedIndexChanged); @@ -86,20 +86,6 @@ this.tabPage1.Name = "tabPage1"; this.tabPage1.UseVisualStyleBackColor = true; // - // tabPage2 - // - this.tabPage2.Controls.Add(this.tableLayoutPanel2); - resources.ApplyResources(this.tabPage2, "tabPage2"); - this.tabPage2.Name = "tabPage2"; - this.tabPage2.UseVisualStyleBackColor = true; - // - // tableLayoutPanel2 - // - resources.ApplyResources(this.tableLayoutPanel2, "tableLayoutPanel2"); - this.tableLayoutPanel2.Controls.Add(this.inUseChart, 0, 1); - this.tableLayoutPanel2.Controls.Add(this.assignedChart, 0, 0); - this.tableLayoutPanel2.Name = "tableLayoutPanel2"; - // // splitContainer1 // resources.ApplyResources(this.splitContainer1, "splitContainer1"); @@ -116,7 +102,7 @@ // panel1 // this.panel1.BackColor = System.Drawing.Color.White; - this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; + this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panel1.Controls.Add(this.label4); this.panel1.Controls.Add(this.tableLayoutPanel1); resources.ApplyResources(this.panel1, "panel1"); @@ -264,6 +250,20 @@ resources.ApplyResources(this.logViewer1, "logViewer1"); this.logViewer1.Name = "logViewer1"; // + // tabPage2 + // + this.tabPage2.Controls.Add(this.tableLayoutPanel2); + resources.ApplyResources(this.tabPage2, "tabPage2"); + this.tabPage2.Name = "tabPage2"; + this.tabPage2.UseVisualStyleBackColor = true; + // + // tableLayoutPanel2 + // + resources.ApplyResources(this.tableLayoutPanel2, "tableLayoutPanel2"); + this.tableLayoutPanel2.Controls.Add(this.inUseChart, 0, 1); + this.tableLayoutPanel2.Controls.Add(this.assignedChart, 0, 0); + this.tableLayoutPanel2.Name = "tableLayoutPanel2"; + // // inUseChart // resources.ApplyResources(this.inUseChart, "inUseChart"); @@ -278,15 +278,13 @@ // resources.ApplyResources(this, "$this"); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.SystemColors.Window; - this.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.BackColor = System.Drawing.Color.Transparent; this.Controls.Add(this.tabControl1); this.Name = "DeployedServicePanel"; this.VisibleChanged += new System.EventHandler(this.DeployedServicePanel_VisibleChanged); + this.Resize += new System.EventHandler(this.DeployedServicePanel_Resize); this.tabControl1.ResumeLayout(false); this.tabPage1.ResumeLayout(false); - this.tabPage2.ResumeLayout(false); - this.tableLayoutPanel2.ResumeLayout(false); this.splitContainer1.Panel1.ResumeLayout(false); this.splitContainer1.Panel2.ResumeLayout(false); this.splitContainer1.ResumeLayout(false); @@ -294,6 +292,8 @@ this.panel1.PerformLayout(); this.tableLayoutPanel1.ResumeLayout(false); this.tableLayoutPanel1.PerformLayout(); + this.tabPage2.ResumeLayout(false); + this.tableLayoutPanel2.ResumeLayout(false); this.ResumeLayout(false); } diff --git a/client/administration/UdsAdmin/controls/panel/DeployedServicePanel.cs b/client/administration/UdsAdmin/controls/panel/DeployedServicePanel.cs index c80f8034..fa902151 100644 --- a/client/administration/UdsAdmin/controls/panel/DeployedServicePanel.cs +++ b/client/administration/UdsAdmin/controls/panel/DeployedServicePanel.cs @@ -150,5 +150,11 @@ namespace UdsAdmin.controls.panel } + private void DeployedServicePanel_Resize(object sender, EventArgs e) + { + // Workaround to "dock" not fitting the content correctly + tabControl1.Size = this.Size; + } + } } diff --git a/client/administration/UdsAdmin/controls/panel/DeployedServicePanel.resx b/client/administration/UdsAdmin/controls/panel/DeployedServicePanel.resx index 116ee194..a8065c2c 100644 --- a/client/administration/UdsAdmin/controls/panel/DeployedServicePanel.resx +++ b/client/administration/UdsAdmin/controls/panel/DeployedServicePanel.resx @@ -118,6 +118,9 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + Top, Bottom, Left, Right + Fill @@ -214,7 +217,7 @@ NoControl - 3, 27 + 3, 28 3, 6, 3, 0 @@ -250,7 +253,7 @@ NoControl - 3, 48 + 3, 50 3, 6, 3, 0 @@ -289,7 +292,7 @@ NoControl - 155, 4 + 233, 4 11, 13 @@ -325,7 +328,7 @@ NoControl - 155, 25 + 233, 26 11, 13 @@ -361,7 +364,7 @@ NoControl - 155, 46 + 233, 48 11, 13 @@ -394,7 +397,7 @@ NoControl - 3, 69 + 3, 72 3, 6, 3, 0 @@ -433,7 +436,7 @@ NoControl - 155, 67 + 233, 70 11, 13 @@ -469,7 +472,7 @@ NoControl - 155, 88 + 233, 92 11, 13 @@ -505,7 +508,7 @@ NoControl - 3, 112 + 3, 117 3, 6, 3, 0 @@ -544,7 +547,7 @@ NoControl - 155, 109 + 233, 114 11, 13 @@ -580,7 +583,7 @@ NoControl - 3, 133 + 3, 139 3, 6, 3, 0 @@ -619,7 +622,7 @@ NoControl - 155, 130 + 233, 136 11, 13 @@ -655,7 +658,7 @@ NoControl - 155, 151 + 233, 158 11, 13 @@ -691,7 +694,7 @@ NoControl - 3, 175 + 3, 183 3, 6, 3, 0 @@ -730,7 +733,7 @@ NoControl - 155, 172 + 233, 180 11, 13 @@ -766,7 +769,7 @@ NoControl - 3, 91 + 3, 95 3, 6, 3, 0 @@ -805,7 +808,7 @@ NoControl - 3, 154 + 3, 161 3, 6, 3, 0 @@ -838,7 +841,7 @@ 10 - 367, 215 + 460, 223 5 @@ -856,7 +859,7 @@ 1 - <?xml version="1.0" encoding="utf-16"?><TableLayoutSettings><Controls><Control Name="groupLabel" Row="0" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="label2" Row="1" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="label1" Row="2" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="lName" Row="0" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="lComments" Row="1" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="lBaseService" Row="2" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="label3" Row="3" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="lOsManager" Row="3" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="lInitial" Row="4" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="cacheLabel" Row="5" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="lCache" Row="5" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="cacheL2Label" Row="6" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="lL2Cache" Row="6" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="lMax" Row="7" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="label6" Row="8" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="lState" Row="8" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="label10" Row="4" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="label7" Row="7" RowSpan="1" Column="0" ColumnSpan="1" /></Controls><Columns Styles="AutoSize,0,AutoSize,0" /><Rows Styles="Percent,10,Percent,10,Percent,10,Percent,10,Percent,10,Percent,10,Percent,10,Percent,10,Percent,10,Percent,10" /></TableLayoutSettings> + <?xml version="1.0" encoding="utf-16"?><TableLayoutSettings><Controls><Control Name="groupLabel" Row="0" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="label2" Row="1" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="label1" Row="2" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="lName" Row="0" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="lComments" Row="1" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="lBaseService" Row="2" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="label3" Row="3" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="lOsManager" Row="3" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="lInitial" Row="4" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="cacheLabel" Row="5" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="lCache" Row="5" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="cacheL2Label" Row="6" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="lL2Cache" Row="6" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="lMax" Row="7" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="label6" Row="8" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="lState" Row="8" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="label10" Row="4" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="label7" Row="7" RowSpan="1" Column="0" ColumnSpan="1" /></Controls><Columns Styles="Percent,50,Percent,50" /><Rows Styles="Percent,10,Percent,10,Percent,10,Percent,10,Percent,10,Percent,10,Percent,10,Percent,10,Percent,10,Percent,10" /></TableLayoutSettings> Fill @@ -865,7 +868,7 @@ 0, 0 - 721, 398 + 721, 397 7 @@ -904,7 +907,7 @@ 0, 0, 0, 0 - 721, 68 + 721, 69 0 @@ -937,7 +940,7 @@ 721, 474 - 398 + 397 8 @@ -1092,9 +1095,6 @@ 1 - - Fill - 0, 0 @@ -1123,7 +1123,7 @@ 6, 13 - 735, 507 + 731, 503 DeployedServicePanel diff --git a/client/administration/UdsAdmin/controls/panel/DeployedServicesPanel.Designer.cs b/client/administration/UdsAdmin/controls/panel/DeployedServicesPanel.Designer.cs index 5aecdff4..2ed91749 100644 --- a/client/administration/UdsAdmin/controls/panel/DeployedServicesPanel.Designer.cs +++ b/client/administration/UdsAdmin/controls/panel/DeployedServicesPanel.Designer.cs @@ -90,9 +90,9 @@ // // tabControl1 // + resources.ApplyResources(this.tabControl1, "tabControl1"); this.tabControl1.Controls.Add(this.tabPage1); this.tabControl1.Controls.Add(this.tabPage2); - resources.ApplyResources(this.tabControl1, "tabControl1"); this.tabControl1.Name = "tabControl1"; this.tabControl1.SelectedIndex = 0; this.tabControl1.SelectedIndexChanged += new System.EventHandler(this.tabControl1_SelectedIndexChanged); @@ -151,10 +151,12 @@ // resources.ApplyResources(this, "$this"); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.Transparent; this.Controls.Add(this.tabControl1); this.DoubleBuffered = true; this.Name = "DeployedServicesPanel"; this.VisibleChanged += new System.EventHandler(this.UsersPanel_VisibleChanged); + this.Resize += new System.EventHandler(this.DeployedServicesPanel_Resize); this.tabControl1.ResumeLayout(false); this.tabPage1.ResumeLayout(false); this.splitContainer1.Panel1.ResumeLayout(false); diff --git a/client/administration/UdsAdmin/controls/panel/DeployedServicesPanel.cs b/client/administration/UdsAdmin/controls/panel/DeployedServicesPanel.cs index 236c2d0a..86133050 100644 --- a/client/administration/UdsAdmin/controls/panel/DeployedServicesPanel.cs +++ b/client/administration/UdsAdmin/controls/panel/DeployedServicesPanel.cs @@ -178,6 +178,11 @@ namespace UdsAdmin.controls.panel updateLogs(); } + private void DeployedServicesPanel_Resize(object sender, EventArgs e) + { + // Workaround to "dock" not fitting the content correctly + tabControl1.Size = this.Size; + } } } diff --git a/client/administration/UdsAdmin/controls/panel/DeployedServicesPanel.resx b/client/administration/UdsAdmin/controls/panel/DeployedServicesPanel.resx index d755c403..95d19d83 100644 --- a/client/administration/UdsAdmin/controls/panel/DeployedServicesPanel.resx +++ b/client/administration/UdsAdmin/controls/panel/DeployedServicesPanel.resx @@ -162,6 +162,9 @@ 0 + + Top, Bottom, Left, Right + Fill @@ -381,9 +384,6 @@ 1 - - Fill - 0, 0 diff --git a/client/administration/UdsAdmin/controls/panel/LogViewer.cs b/client/administration/UdsAdmin/controls/panel/LogViewer.cs index 3e588f97..78ed8aea 100644 --- a/client/administration/UdsAdmin/controls/panel/LogViewer.cs +++ b/client/administration/UdsAdmin/controls/panel/LogViewer.cs @@ -21,6 +21,8 @@ namespace UdsAdmin.controls.panel { InitializeComponent(); + ResizeRedraw = true; + listView.ListViewItemSorter = _listSorter = new gui.ListViewSorter(listView, new int[] { 3, 5 }); levelFilterCombo.Items.AddRange(new string[] { xmlrpc.Constants.LEVEL_DEBUG, xmlrpc.Constants.LEVEL_INFO, diff --git a/client/administration/UdsAdmin/gui/ActionTree.cs b/client/administration/UdsAdmin/gui/ActionTree.cs index 0cccdde2..3de92038 100644 --- a/client/administration/UdsAdmin/gui/ActionTree.cs +++ b/client/administration/UdsAdmin/gui/ActionTree.cs @@ -463,14 +463,17 @@ namespace UdsAdmin.gui // Hides all visible controls foreach (Control ctrl in panel.Controls) ctrl.Hide(); + //panel.Controls.Clear(); string key = getKey(selected); if (panel.Controls.ContainsKey(key)) + { panel.Controls[key].Show(); + } else // Don't exists, creates a new panel associated with the tree view and initializes it { Control ctrl; - switch( selected.Name ) + switch (selected.Name) { case USERS: {