Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/23/15 16:14:30 (9 years ago)
Author:
gkronber
Message:

#2522:

  • moved UI components out of HeuristicLab.PluginInfrastructure -> HeuristicLab.PluginInfrastructure.UI
  • moved ErrorDialog to HeuristicLab.MainForm.WindowsForms
  • moved ErrorHandling (for building an error message string) to HeuristicLab.Common
  • Changed exception handlers in Views to use MainForm.ShowError()
  • Changed usages for ErrorDialog in non-UI components to throw exceptions instead.
Location:
branches/RefactorPluginInfrastructure-2522/HeuristicLab/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/RefactorPluginInfrastructure-2522/HeuristicLab/3.3/HeuristicLab-3.3.csproj

    r11623 r13338  
    156156  </ItemGroup>
    157157  <ItemGroup>
    158     <ProjectReference Include="..\..\HeuristicLab.PluginInfrastructure\3.3\HeuristicLab.PluginInfrastructure-3.3.csproj">
    159       <Project>{94186A6A-5176-4402-AE83-886557B53CCA}</Project>
    160       <Name>HeuristicLab.PluginInfrastructure-3.3</Name>
    161       <Private>False</Private>
    162     </ProjectReference>
    163   </ItemGroup>
    164   <ItemGroup>
    165158    <None Include="GNU General Public License.txt">
    166159      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
     
    194187    </BootstrapperPackage>
    195188  </ItemGroup>
     189  <ItemGroup>
     190    <ProjectReference Include="..\..\HeuristicLab.PluginInfrastructure.UI\HeuristicLab.PluginInfrastructure.UI-4.0.csproj">
     191      <Project>{7af3c7b6-8ba5-44f3-8d5b-2bf7a23cf12d}</Project>
     192      <Name>HeuristicLab.PluginInfrastructure.UI-4.0</Name>
     193    </ProjectReference>
     194  </ItemGroup>
    196195  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
    197196  <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
  • branches/RefactorPluginInfrastructure-2522/HeuristicLab/3.3/Program.cs

    r12012 r13338  
    2121
    2222using System;
     23using System.Windows.Forms;
     24using HeuristicLab.PluginInfrastructure.UI;
    2325
    2426namespace HeuristicLab {
    2527  static class Program {
    2628    [STAThread]
     29    /// <summary>
     30    /// Main entry point of the plugin infrastructure. Loads the starter form.
     31    /// </summary>
     32    /// <param name="args">Command line arguments</param>
    2733    static void Main(string[] args) {
    28       HeuristicLab.PluginInfrastructure.Main.Run(args);
     34      if ((!FrameworkVersionErrorDialog.NET4_5Installed && !FrameworkVersionErrorDialog.MonoInstalled)
     35        || (FrameworkVersionErrorDialog.MonoInstalled && !FrameworkVersionErrorDialog.MonoCorrectVersionInstalled)) {
     36        Application.EnableVisualStyles();
     37        Application.SetCompatibleTextRenderingDefault(false);
     38        Application.Run(new FrameworkVersionErrorDialog());
     39      } else {
     40        try {
     41          Application.EnableVisualStyles();
     42          Application.SetCompatibleTextRenderingDefault(false);
     43          Application.Run(new StarterForm(args));
     44        } catch (Exception ex) {
     45          MessageBox.Show(ex.Message, "Exception", MessageBoxButtons.OK, MessageBoxIcon.Error);
     46        }
     47      }
    2948    }
    3049  }
Note: See TracChangeset for help on using the changeset viewer.