public EditBuildGroupForm(ProjectBuildGroup BuildGroup)
        {
            InitializeComponent();

            this.BuildGroup = BuildGroup;

            LoadBuildGroup();
        }
        private static List<ProjectBuildGroup> LoadBuildGroups(XmlNodeList xnodes)
        {
            List<ProjectBuildGroup> groups = new List<ProjectBuildGroup>();
            foreach (XmlNode xnode in xnodes)
            {
                string name = xnode.Attributes["name"].Value;

                //make a new group
                ProjectBuildGroup newGroup = new ProjectBuildGroup(name);

                newGroup.Events = LoadEvents(xnode.SelectNodes("event"));

                groups.Add(newGroup);
            }

            return groups;
        }
        private void AddBuildGroup()
        {
            //create new builgroud
            ProjectBuildGroup newBG = new ProjectBuildGroup("");

            //add to project
            BuildGroups.Add(newBG);

            //add to list
            buildGroupListBox.Items.Add(newBG);

            //select in list
            buildGroupListBox.SelectedItem = newBG;

            //edit the newly created BG
            EditBuildGroup();
        }
 public Builder(ProjectBuildGroup BuildGroup)
 {
     this.BuildGroup = BuildGroup;
     Template = new StringTemplate();
     Processes = new List<Process>();
 }