private void OpenProject(string FileName)
        {
            try
            {
                Serializer ser = new Serializer();
                CurrentProject = ser.DeSerializeObject(FileName);

                LoadFolderList();
                LoadBuildGroupList();

                //enable toolbars etc
                buildToolStripMenuItem.Enabled = true;
                projectToolStripMenuItem.Enabled = true;
                mainToolStrip.Enabled = true;
            }
            catch (Exception)
            {
                MessageBox.Show("Error loading project.");
            }
        }
 private void SaveProject()
 {
     if (CurrentProject != null)
     {
         Serializer ser = new Serializer();
         ser.SerializeObject(CurrentProject.FileName, CurrentProject);
     }
 }
        private void NewProject()
        {
            Project newProject = ProjectLoader.LoadProject(Application.StartupPath + "\\defaultproject.xml");

            newProject.FileName = saveProjectDialog.FileName;

            Serializer ser = new Serializer();
            ser.SerializeObject(saveProjectDialog.FileName, newProject);

            OpenProject(saveProjectDialog.FileName);
        }