treeViewItem.Visible = InItemList();\r
if (InItemList())\r
{\r
+ HideShipLabels();\r
if (CreateItemList())\r
SetTreeViewItem();\r
}\r
panelShipList.ResumeLayout();\r
}\r
\r
- private void SetTreeViewItem()\r
+ private void HideShipLabels()\r
{\r
panelShipList.SuspendLayout();\r
for (var i = 0; i < _shipList.Length; i++)\r
_labelPanelList[i].Visible = _checkBoxPanelList[i].Visible = _repairPanelList[i].Visible = false;\r
panelShipList.ResumeLayout();\r
+ }\r
+\r
+ private void SetTreeViewItem()\r
+ {\r
treeViewItem.BeginUpdate();\r
var save = SaveTreeViewState(treeViewItem.Nodes);\r
treeViewItem.Nodes.Clear();\r