Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/10/09 16:50:26 (15 years ago)
Author:
swagner
Message:

Implemented generic EventArgs (#796)

Location:
trunk/sources/HeuristicLab.ES/3.2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.ES/3.2/ESEditor.cs

    r2052 r2474  
    2828using System.Windows.Forms;
    2929using HeuristicLab.PluginInfrastructure;
     30using HeuristicLab.Common;
    3031using HeuristicLab.Core;
    3132
     
    110111    /// <remarks>Calls <see cref="ViewBase.RemoveItemEvents"/> of base class <see cref="EditorBase"/>.</remarks>
    111112    protected override void RemoveItemEvents() {
    112       ES.Engine.ExceptionOccurred -= new EventHandler<ExceptionEventArgs>(Engine_ExceptionOccurred);
     113      ES.Engine.ExceptionOccurred -= new EventHandler<EventArgs<Exception>>(Engine_ExceptionOccurred);
    113114      ES.Engine.Finished -= new EventHandler(Engine_Finished);
    114115      ES.Changed -= new EventHandler(ES_Changed);
     
    122123    protected override void AddItemEvents() {
    123124      base.AddItemEvents();
    124       ES.Engine.ExceptionOccurred += new EventHandler<ExceptionEventArgs>(Engine_ExceptionOccurred);
     125      ES.Engine.ExceptionOccurred += new EventHandler<EventArgs<Exception>>(Engine_ExceptionOccurred);
    125126      ES.Engine.Finished += new EventHandler(Engine_Finished);
    126127      ES.Changed += new EventHandler(ES_Changed);
     
    242243
    243244    #region Engine Events
    244     private delegate void OnExceptionEventDelegate(object sender, ExceptionEventArgs e);
    245     private void Engine_ExceptionOccurred(object sender, ExceptionEventArgs e) {
     245    private delegate void OnExceptionEventDelegate(object sender, EventArgs<Exception> e);
     246    private void Engine_ExceptionOccurred(object sender, EventArgs<Exception> e) {
    246247      if (InvokeRequired)
    247248        Invoke(new OnExceptionEventDelegate(Engine_ExceptionOccurred), sender, e);
    248249      else
    249         Auxiliary.ShowErrorMessageBox(e.Exception);
     250        Auxiliary.ShowErrorMessageBox(e.Value);
    250251    }
    251252    private void Engine_Finished(object sender, EventArgs e) {
  • trunk/sources/HeuristicLab.ES/3.2/HeuristicLab.ES-3.2.csproj

    r2052 r2474  
    104104  </ItemGroup>
    105105  <ItemGroup>
     106    <ProjectReference Include="..\..\HeuristicLab.Common\3.2\HeuristicLab.Common-3.2.csproj">
     107      <Project>{1FC004FC-59AF-4249-B1B6-FF25873A20E4}</Project>
     108      <Name>HeuristicLab.Common-3.2</Name>
     109    </ProjectReference>
    106110    <ProjectReference Include="..\..\HeuristicLab.Core\3.2\HeuristicLab.Core-3.2.csproj">
    107111      <Project>{F43B59AB-2B8C-4570-BC1E-15592086517C}</Project>
  • trunk/sources/HeuristicLab.ES/3.2/HeuristicLabESPlugin.cs

    r1529 r2474  
    3131  [ClassInfo(Name = "HeuristicLab.ES-3.2")]
    3232  [PluginFile(Filename = "HeuristicLab.ES-3.2.dll", Filetype = PluginFileType.Assembly)]
     33  [Dependency(Dependency = "HeuristicLab.Common-3.2")]
    3334  [Dependency(Dependency = "HeuristicLab.Core-3.2")]
    3435  [Dependency(Dependency = "HeuristicLab.Data-3.2")]
Note: See TracChangeset for help on using the changeset viewer.