private void Edit_GenerateFilesMenu_Click(object sender, EventArgs e)
        {
            if (CurrentProject != null)
            {
                if (ProjectManager.IsValidatingProject || ProjectManager.IsGeneratingFiles)
                {
                    return;
                }

                if (!ProjectManager.IsPartValidated)
                {
                    GenerateFileAfterValidation = true;
                    ProjectManager.ValidateProject();
                    ValidationPanel.Activate();
                    return;
                }
                else if (!ProjectManager.IsPartValid)
                {
                    ValidationPanel.Activate();
                    return;
                }

                ProjectManager.GenerateLddFiles(SettingsManager.Current.BuildSettings.GenerateOutlines);
            }
        }
        private void Edit_ValidatePartMenu_Click(object sender, EventArgs e)
        {
            if (ProjectManager.IsValidatingProject || ProjectManager.IsGeneratingFiles)
            {
                return;
            }

            ProjectManager.ValidateProject();
            ValidationPanel.Activate();
        }
 private void ProjectManager_GenerationFinished(object sender, ProjectBuildEventArgs e)
 {
     //TODO: localize and improve messages
     if (e.Successful)
     {
         ProjectManager.SaveGeneratedPart(e.Result, SelectedBuildConfig);
     }
     else
     {
         MessageBox.Show("An error occured.");
         ValidationPanel.Activate();
         ValidationPanel.ShowBuildMessages(e.Messages);
     }
 }