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.GP.StructureIdentification/3.4
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.GP.StructureIdentification/3.4/HeuristicLab.GP.StructureIdentification-3.4.csproj

    r1914 r2474  
    146146  </ItemGroup>
    147147  <ItemGroup>
     148    <ProjectReference Include="..\..\HeuristicLab.Common\3.2\HeuristicLab.Common-3.2.csproj">
     149      <Project>{1FC004FC-59AF-4249-B1B6-FF25873A20E4}</Project>
     150      <Name>HeuristicLab.Common-3.2</Name>
     151    </ProjectReference>
    148152    <ProjectReference Include="..\..\HeuristicLab.Constraints\3.3\HeuristicLab.Constraints-3.3.csproj">
    149153      <Project>{19C1E42A-4B48-4EFD-B697-899016F1C198}</Project>
  • trunk/sources/HeuristicLab.GP.StructureIdentification/3.4/HeuristicLabGPStructureIdentificationPlugin.cs

    r1914 r2474  
    2828  [ClassInfo(Name = "HeuristicLab.GP.StructureIdentification-3.4")]
    2929  [PluginFile(Filename = "HeuristicLab.GP.StructureIdentification-3.4.dll", Filetype = PluginFileType.Assembly)]
     30  [Dependency(Dependency = "HeuristicLab.Common-3.2")]
    3031  [Dependency(Dependency = "HeuristicLab.Constraints-3.3")]
    3132  [Dependency(Dependency = "HeuristicLab.Core-3.3")]
  • trunk/sources/HeuristicLab.GP.StructureIdentification/3.4/OffSpringSelectionGpEditor.cs

    r1873 r2474  
    2929using HeuristicLab.PluginInfrastructure;
    3030using HeuristicLab.Core;
     31using HeuristicLab.Common;
    3132
    3233namespace HeuristicLab.GP.StructureIdentification {
     
    4849
    4950    protected override void RemoveItemEvents() {
    50       OffspringSelectionGP.Engine.ExceptionOccurred -= new EventHandler<ExceptionEventArgs>(Engine_ExceptionOccurred);
     51      OffspringSelectionGP.Engine.ExceptionOccurred -= new EventHandler<EventArgs<Exception>>(Engine_ExceptionOccurred);
    5152      OffspringSelectionGP.Engine.Finished -= new EventHandler(Engine_Finished);
    5253      scopeView.Scope = null;
     
    5657    protected override void AddItemEvents() {
    5758      base.AddItemEvents();
    58       OffspringSelectionGP.Engine.ExceptionOccurred += new EventHandler<ExceptionEventArgs>(Engine_ExceptionOccurred);
     59      OffspringSelectionGP.Engine.ExceptionOccurred += new EventHandler<EventArgs<Exception>>(Engine_ExceptionOccurred);
    5960      OffspringSelectionGP.Engine.Finished += new EventHandler(Engine_Finished);
    6061      SetDataBinding();
     
    116117
    117118    #region Engine Events
    118     private delegate void OnExceptionEventDelegate(object sender, ExceptionEventArgs e);
    119     private void Engine_ExceptionOccurred(object sender, ExceptionEventArgs e) {
     119    private delegate void OnExceptionEventDelegate(object sender, EventArgs<Exception> e);
     120    private void Engine_ExceptionOccurred(object sender, EventArgs<Exception> e) {
    120121      if (InvokeRequired)
    121122        Invoke(new OnExceptionEventDelegate(Engine_ExceptionOccurred), sender, e);
    122123      else
    123         Auxiliary.ShowErrorMessageBox(e.Exception);
     124        Auxiliary.ShowErrorMessageBox(e.Value);
    124125    }
    125126    private void Engine_Finished(object sender, EventArgs e) {
  • trunk/sources/HeuristicLab.GP.StructureIdentification/3.4/StandardGpEditor.cs

    r1873 r2474  
    2929using HeuristicLab.PluginInfrastructure;
    3030using HeuristicLab.Core;
     31using HeuristicLab.Common;
    3132
    3233namespace HeuristicLab.GP.StructureIdentification {
     
    4849
    4950    protected override void RemoveItemEvents() {
    50       StandardGP.Engine.ExceptionOccurred -= new EventHandler<ExceptionEventArgs>(Engine_ExceptionOccurred);
     51      StandardGP.Engine.ExceptionOccurred -= new EventHandler<EventArgs<Exception>>(Engine_ExceptionOccurred);
    5152      StandardGP.Engine.Finished -= new EventHandler(Engine_Finished);
    5253      scopeView.Scope = null;
     
    5556    protected override void AddItemEvents() {
    5657      base.AddItemEvents();
    57       StandardGP.Engine.ExceptionOccurred += new EventHandler<ExceptionEventArgs>(Engine_ExceptionOccurred);
     58      StandardGP.Engine.ExceptionOccurred += new EventHandler<EventArgs<Exception>>(Engine_ExceptionOccurred);
    5859      StandardGP.Engine.Finished += new EventHandler(Engine_Finished);
    5960      SetDataBinding();
     
    114115
    115116    #region Engine Events
    116     private delegate void OnExceptionEventDelegate(object sender, ExceptionEventArgs e);
    117     private void Engine_ExceptionOccurred(object sender, ExceptionEventArgs e) {
     117    private delegate void OnExceptionEventDelegate(object sender, EventArgs<Exception> e);
     118    private void Engine_ExceptionOccurred(object sender, EventArgs<Exception> e) {
    118119      if (InvokeRequired)
    119120        Invoke(new OnExceptionEventDelegate(Engine_ExceptionOccurred), sender, e);
    120121      else
    121         Auxiliary.ShowErrorMessageBox(e.Exception);
     122        Auxiliary.ShowErrorMessageBox(e.Value);
    122123    }
    123124    private void Engine_Finished(object sender, EventArgs e) {
Note: See TracChangeset for help on using the changeset viewer.