private void LoadConfig() { try { ipItems = ipItems.LoadConfig(); } catch (Exception err) { Console.WriteLine(err.Message); } try { links = links.LoadConfig(); for (Int32 i = 0; i < links.Nodes.Length; i++) { LinkNode link = (LinkNode)links.Nodes[i]; ToolStripMenuItem menuItem = new ToolStripMenuItem(); menuItem.Name = "link" + link.Name; menuItem.Text = link.Name; menuItem.ToolTipText = link.Description; menuItem.Tag = link.Location; menuItem.Click += new System.EventHandler(this.toolsLinksSelect); this.toolsFileFavorites.DropDownItems.Add(menuItem); } } catch (Exception err) { Console.WriteLine(err.Message); } }