public EditFolderForm(ProjectFolder Folder)
        {
            InitializeComponent();
            this.Folder = Folder;

            LoadFolder();
        }
        /// <summary>
        /// Adds a new folder.
        /// </summary>
        private void AddFolder()
        {
            ProjectFolder newFolder = new ProjectFolder("","");

            Folders.Add(newFolder);

            folderListBox.Items.Add(newFolder);

            folderListBox.SelectedItem = newFolder;

            EditFolder();
        }
        private static List<ProjectFolder> LoadFolders(XmlNodeList xnodes)
        {
            List<ProjectFolder> folders = new List<ProjectFolder>();
            foreach (XmlNode xnode in xnodes)
            {
                string directoryName = xnode.Attributes["directoryname"].Value;
                string name = xnode.Attributes["name"].Value;
                //make a new folder
                ProjectFolder pFolder = new ProjectFolder(directoryName, name);

                //load editor filters
                pFolder.Editors = LoadEditors(xnode.SelectNodes("editor"));

                folders.Add(pFolder);
            }

            return folders;
        }