Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/18/09 18:33:30 (15 years ago)
Author:
gkronber
Message:

Worked on core of plugin infrastructure.

  • Collected all classes into a single assembly (HL.PluginInfrastructure)
  • Moved SplashScreen and MainForm from HeuristicLab.exe project into the plugin infrastructure.
  • Introduced namespaces
  • Added strict access modifiers (internal)
  • Fixed most FxCop warnings in plugin infrastructure core.
  • Fixed issues with plugin load/unload events
  • Deleted empty interface IControl

#799

Location:
branches/PluginInfrastructure Refactoring/HeuristicLab
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • branches/PluginInfrastructure Refactoring/HeuristicLab/HeuristicLab.csproj

    r2503 r2504  
    8383  </ItemGroup>
    8484  <ItemGroup>
    85     <Compile Include="MainForm.cs">
    86       <SubType>Form</SubType>
    87     </Compile>
    88     <Compile Include="MainForm.Designer.cs">
    89       <DependentUpon>MainForm.cs</DependentUpon>
    90     </Compile>
    9185    <Compile Include="Program.cs" />
    9286    <Compile Include="Properties\AssemblyInfo.cs" />
    93     <EmbeddedResource Include="MainForm.resx">
    94       <DependentUpon>MainForm.cs</DependentUpon>
    95       <SubType>Designer</SubType>
    96     </EmbeddedResource>
    9787    <EmbeddedResource Include="Properties\Resources.resx">
    9888      <Generator>ResXFileCodeGenerator</Generator>
    9989      <LastGenOutput>Resources.Designer.cs</LastGenOutput>
    100       <SubType>Designer</SubType>
    101     </EmbeddedResource>
    102     <EmbeddedResource Include="SplashScreen.resx">
    103       <DependentUpon>SplashScreen.cs</DependentUpon>
    10490      <SubType>Designer</SubType>
    10591    </EmbeddedResource>
     
    118104      <DependentUpon>Settings.settings</DependentUpon>
    119105      <DesignTimeSharedInput>True</DesignTimeSharedInput>
    120     </Compile>
    121     <Compile Include="SplashScreen.cs">
    122       <SubType>Form</SubType>
    123     </Compile>
    124     <Compile Include="SplashScreen.Designer.cs">
    125       <DependentUpon>SplashScreen.cs</DependentUpon>
    126106    </Compile>
    127107  </ItemGroup>
  • branches/PluginInfrastructure Refactoring/HeuristicLab/Program.cs

    r2488 r2504  
    6363    }
    6464
    65     public static void ShowErrorMessageBox(Exception ex) {
    66       MessageBox.Show(BuildErrorMessage(ex),
    67                       "Error - " + ex.GetType().Name,
    68                       MessageBoxButtons.OK,
    69                       MessageBoxIcon.Error);
     65    private static void ShowErrorMessageBox(Exception ex) {
     66      MessageBox.Show(null,
     67        BuildErrorMessage(ex),
     68        "Error - " + ex.GetType().Name,
     69        MessageBoxButtons.OK,
     70        MessageBoxIcon.Error, MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly);
    7071    }
    7172
  • branches/PluginInfrastructure Refactoring/HeuristicLab/Properties/AssemblyInfo.frame

    r581 r2504  
    3636[assembly: AssemblyTrademark("")]
    3737[assembly: AssemblyCulture("")]
     38[assembly: System.Resources.NeutralResourcesLanguage("en")]
    3839
    3940// Setting ComVisible to false makes the types in this assembly not visible
  • branches/PluginInfrastructure Refactoring/HeuristicLab/Properties/Resources.Designer.cs

    r2 r2504  
    1 #region License Information
    2 /* HeuristicLab
    3  * Copyright (C) 2002-2008 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    4  *
    5  * This file is part of HeuristicLab.
    6  *
    7  * HeuristicLab is free software: you can redistribute it and/or modify
    8  * it under the terms of the GNU General Public License as published by
    9  * the Free Software Foundation, either version 3 of the License, or
    10  * (at your option) any later version.
    11  *
    12  * HeuristicLab is distributed in the hope that it will be useful,
    13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    15  * GNU General Public License for more details.
    16  *
    17  * You should have received a copy of the GNU General Public License
    18  * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
    19  */
    20 #endregion
    21 
    22 //------------------------------------------------------------------------------
     1//------------------------------------------------------------------------------
    232// <auto-generated>
    243//     This code was generated by a tool.
    25 //     Runtime Version:2.0.50727.1433
     4//     Runtime Version:2.0.50727.4200
    265//
    276//     Changes to this file may cause incorrect behavior and will be lost if
     
    8160            }
    8261        }
    83        
    84         internal static System.Drawing.Bitmap Details {
    85             get {
    86                 object obj = ResourceManager.GetObject("Details", resourceCulture);
    87                 return ((System.Drawing.Bitmap)(obj));
    88             }
    89         }
    90        
    91         internal static System.Drawing.Icon HeuristicLab {
    92             get {
    93                 object obj = ResourceManager.GetObject("HeuristicLab", resourceCulture);
    94                 return ((System.Drawing.Icon)(obj));
    95             }
    96         }
    97        
    98         internal static System.Drawing.Bitmap LargeIcons {
    99             get {
    100                 object obj = ResourceManager.GetObject("LargeIcons", resourceCulture);
    101                 return ((System.Drawing.Bitmap)(obj));
    102             }
    103         }
    104        
    105         internal static System.Drawing.Bitmap List {
    106             get {
    107                 object obj = ResourceManager.GetObject("List", resourceCulture);
    108                 return ((System.Drawing.Bitmap)(obj));
    109             }
    110         }
    111        
    112         internal static System.Drawing.Bitmap Logo_white {
    113             get {
    114                 object obj = ResourceManager.GetObject("Logo_white", resourceCulture);
    115                 return ((System.Drawing.Bitmap)(obj));
    116             }
    117         }
    11862    }
    11963}
  • branches/PluginInfrastructure Refactoring/HeuristicLab/Properties/Resources.resx

    r2 r2504  
    118118    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
    119119  </resheader>
    120   <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
    121   <data name="Details" type="System.Resources.ResXFileRef, System.Windows.Forms">
    122     <value>..\Resources\Details.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
    123   </data>
    124   <data name="HeuristicLab" type="System.Resources.ResXFileRef, System.Windows.Forms">
    125     <value>..\Resources\HeuristicLab.ico;System.Drawing.Icon, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
    126   </data>
    127   <data name="LargeIcons" type="System.Resources.ResXFileRef, System.Windows.Forms">
    128     <value>..\Resources\LargeIcons.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
    129   </data>
    130   <data name="List" type="System.Resources.ResXFileRef, System.Windows.Forms">
    131     <value>..\Resources\List.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
    132   </data>
    133   <data name="Logo_white" type="System.Resources.ResXFileRef, System.Windows.Forms">
    134     <value>..\Resources\Logo_white.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
    135   </data>
    136120</root>
  • branches/PluginInfrastructure Refactoring/HeuristicLab/Properties/Settings.Designer.cs

    r854 r2504  
    22// <auto-generated>
    33//     This code was generated by a tool.
    4 //     Runtime Version:2.0.50727.3053
     4//     Runtime Version:2.0.50727.4200
    55//
    66//     Changes to this file may cause incorrect behavior and will be lost if
     
    2323            }
    2424        }
    25        
    26         [global::System.Configuration.ApplicationScopedSettingAttribute()]
    27         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
    28         [global::System.Configuration.DefaultSettingValueAttribute("unknown")]
    29         public string User {
    30             get {
    31                 return ((string)(this["User"]));
    32             }
    33         }
    34        
    35         [global::System.Configuration.ApplicationScopedSettingAttribute()]
    36         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
    37         [global::System.Configuration.DefaultSettingValueAttribute("unknown")]
    38         public string Organization {
    39             get {
    40                 return ((string)(this["Organization"]));
    41             }
    42         }
    4325    }
    4426}
  • branches/PluginInfrastructure Refactoring/HeuristicLab/Properties/Settings.settings

    r854 r2504  
    11<?xml version='1.0' encoding='utf-8'?>
    2 <SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="HeuristicLab.Properties" GeneratedClassName="Settings">
     2<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
    33  <Profiles />
    4   <Settings>
    5     <Setting Name="User" Type="System.String" Scope="Application">
    6       <Value Profile="(Default)">unknown</Value>
    7     </Setting>
    8     <Setting Name="Organization" Type="System.String" Scope="Application">
    9       <Value Profile="(Default)">unknown</Value>
    10     </Setting>
    11   </Settings>
     4  <Settings />
    125</SettingsFile>
  • branches/PluginInfrastructure Refactoring/HeuristicLab/app.config

    r2472 r2504  
    22<configuration>
    33    <configSections>
    4         <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
    5             <section name="HeuristicLab.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
    6         </sectionGroup>
    74    </configSections>
    85  <connectionStrings>
    96  </connectionStrings>
    10   <system.serviceModel>
    11   </system.serviceModel>
    127  <runtime>
    138    <gcServer enabled="true" />
     
    1712      <remove invariant="System.Data.SQLite"/>
    1813      <add name="SQLite Data Provider" invariant="System.Data.SQLite"
    19            description=".Net Framework Data Provider for SQLite"           
     14           description=".Net Framework Data Provider for SQLite"
    2015           type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite" />
    2116      <remove invariant="System.Data.SqlServerCe.3.5" />
    22       <add name="Microsoft SQL Server Compact Data Provider" invariant="System.Data.SqlServerCe.3.5" 
    23            description=".NET Framework Data Provider for Microsoft SQL Server Compact" 
     17      <add name="Microsoft SQL Server Compact Data Provider" invariant="System.Data.SqlServerCe.3.5"
     18           description=".NET Framework Data Provider for Microsoft SQL Server Compact"
    2419           type="System.Data.SqlServerCe.SqlCeProviderFactory, System.Data.SqlServerCe, Version=3.5.1.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91"/>
    2520    </DbProviderFactories>
    2621  </system.data>
    27   <applicationSettings>
    28     <HeuristicLab.Properties.Settings>
    29       <setting name="User" serializeAs="String">
    30         <value>unknown</value>
    31       </setting>
    32       <setting name="Organization" serializeAs="String">
    33         <value>unknown</value>
    34       </setting>
    35     </HeuristicLab.Properties.Settings>
    36   </applicationSettings>
    3722</configuration>
Note: See TracChangeset for help on using the changeset viewer.