public SectionItem Add(string name)
        {
            SectionItem   item  = new SectionItem();
            ISectionPanel panel = MpeInstaller.SectionPanels[name];

            if (panel == null)
            {
                return(null);
            }
            item.Name      = panel.DisplayName;
            item.PanelName = panel.DisplayName;
            item.Params    = panel.GetDefaultParams();
            Add(item);
            return(item);
        }
        private void TestToolStripMenuItemClick(object sender, EventArgs e)
        {
            ToolStripMenuItem menu  = sender as ToolStripMenuItem;
            SectionItem       item  = new SectionItem();
            ISectionPanel     panel = menu.Tag as ISectionPanel;

            if (panel == null)
            {
                return;
            }
            SelectedSection = null;
            item.Name       = panel.DisplayName;
            item.PanelName  = panel.DisplayName;
            item.Params     = panel.GetDefaultParams();
            Package.Sections.Add(item);
            AddSection(item);
            cmb_sectiontype.SelectedItem = item;
        }