private bool init()
        {
            bool needAdjust = _rootNode.CheckOldSchema();

            //load nodes
            this.HideSelection = false;
            Nodes.Clear();
            Nodes.Add(new TreeNodeWixGeneral(_rootNode.General));
            TreeNodeWixAppFolder na = new TreeNodeWixAppFolder(_rootNode.AppFolder);

            Nodes.Add(na);
            Nodes.Add(new TreeNodeWixIconCollection(_rootNode.Icons));
            Nodes.Add(new TreeNodeWixShortcutCollection(_rootNode.Shortcuts));
            TreeNodeWixSystemFolder nsys = new TreeNodeWixSystemFolder(_rootNode.SystemFolder);

            Nodes.Add(nsys);
            //
            TreeNodeWixCommonDataFolder ncpd = new TreeNodeWixCommonDataFolder(_rootNode.CommonDataFolder);

            Nodes.Add(ncpd);
            //
            TreeNodeWixCultureList cl = new TreeNodeWixCultureList(_rootNode.Cultures);

            Nodes.Add(cl);
            //
            return(needAdjust);
        }
        private void mnu_removeCulture(object sender, EventArgs e)
        {
            TreeNode pn = this.Parent;

            if (pn.Nodes.Count > 1)
            {
                TreeViewWix tv = this.TreeView as TreeViewWix;
                Form        f  = null;
                if (this.TreeView != null)
                {
                    f = this.TreeView.FindForm();
                }
                if (MessageBox.Show(f, "Do you want to remove this culture from the setup?", "Remove Culture", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
                {
                    WixCultureNode         cn  = this.CultureNode;
                    TreeNodeWixCultureList tcl = pn as TreeNodeWixCultureList;
                    if (tcl != null)
                    {
                        tcl.Cultures.CultureList.Remove(cn);
                    }
                    XmlNode wp = cn.XmlData.ParentNode;
                    wp.RemoveChild(cn.XmlData);
                    this.Remove();
                    if (tv != null)
                    {
                        tv.OnPropertyValueChanged();
                    }
                }
            }
        }