public CServerControl()
        {
            InitializeComponent();

            // create the Manage control only once
            controlManage = new Manage(this);
            controlManage.Dock = DockStyle.Fill;
        }
        public PluginStandalonePage(AddRemovePluginDlg parentDlg, Manage controlManage, LACTreeNode rootNode, LWTreeView lmcTreeview)
        {
            this.pageID = "PluginStandalonePage";
            InitializeComponent();
            SetPageTitle("Standalone");
            _parentDlg = parentDlg;
            _controlManage = controlManage;
            _rootNode = rootNode;
            _lmcTreeview = lmcTreeview;

            TreeNode node = lmcTreeview.Nodes[0];
            ImageList il = new ImageList();
            this.ChosenPluginlistView.Items.Clear();

            foreach (TreeNode n in node.Nodes)
            {
                ListViewItem lviArr;
                string str = n.Text;
                if (str.Contains("("))
                    str = n.Text.Substring(0, n.Text.IndexOf('('));
                string[] values = { str };
                lviArr = new ListViewItem(values);
                lviArr.Tag = n;
                lviArr.ImageIndex = n.ImageIndex;// (int)PluginStandalonePage.GetNodeType(n.Name);
                this.ChosenPluginlistView.Items.Add(lviArr);
            }

            visitOneNode(node as LACTreeNode, 0);

            if (this.PluginComboBox.Items.Count != 0)
            {
                this.PluginComboBox.SelectedIndex = 0;
            }
        }
        public AddRemovePluginDlg(Manage controlManage, LACTreeNode rootNode, LWTreeView lmcTreeview)
        {
            InitializeComponent();
            Text = "Add/Remove Plug-in...";
            _controlManage = controlManage;
            _rootNode = rootNode;
            _lmcTreeview = lmcTreeview;

            ((EditDialog)this).ShowApplyButton = false;

            InitializePages();
        }