示例#1
0
 private void pictureBoxQuickGen_Click(object sender, EventArgs e)
 {
     proj.InputPath           = Config.GetUser("SimpleWizardBugzillaXMLFile");
     proj.LoadProjectFilePath = Config.GetUser("SimpleWizardProjectFile");
     proj.SaveProjectFilePath = Config.GetUser("SimpleWizardProjectFile");
     try
     {
         GUI.Helper.Generate(proj);
         MessageBox.Show("Generation of Microsoft Project file \"" + proj.SaveProjectFilePath + "\" successfull.", "Generation Result", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
     catch (ProjzillaException pe)
     {
         MessageBox.Show("Error: " + pe.Message, "Projzilla Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
         proj.Close();
         if (pe.Severity == ProjzillaExceptionSeverity.Crash)
         {
             Application.Exit();
         }
     }
 }