Beispiel #1
0
 private void LoadProject()
 {
     try
     {
         this.Manager = Setup.Manager.Load();
         this.projectComboBox.Items.AddRange(this.Manager.ToArray());
         this.SetProject(this.Manager.ActiveProject);
     }
     catch (Exception e)
     {
         MessageBox.Show(
             "There was an error while loading project data." +
             Environment.NewLine + Environment.NewLine +
             e.ToString() +
             Environment.NewLine + Environment.NewLine +
             "(You can press Ctrl+C to copy the contents of this dialog)",
             "Critical Error",
             MessageBoxButtons.OK,
             MessageBoxIcon.Error);
         this.Close();
     }
 }
Beispiel #2
0
 private void LoadProject()
 {
     try
     {
         this.Manager = Setup.Manager.Load();
         this.projectComboBox.Items.AddRange(this.Manager.ToArray());
         this.SetProject(this.Manager.ActiveProject);
     }
     catch (Exception e)
     {
         MessageBox.Show(
             "There was an error while loading project data." +
             Environment.NewLine + Environment.NewLine +
             e.ToString() +
             Environment.NewLine + Environment.NewLine +
             "(You can press Ctrl+C to copy the contents of this dialog)",
             "Critical Error",
             MessageBoxButtons.OK,
             MessageBoxIcon.Error);
         this.Close();
     }
 }