Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/19/09 17:16:36 (16 years ago)
Author:
gkronber
Message:

worked on #419

  • added function to open and display any model
  • added 'hard-coded' implementation of offspring selection GP (work in progress)
  • added properties for max. size and max. height in StandardGP
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/CEDMA-Refactoring-Ticket419/HeuristicLab.CEDMA.Core/TableResultsView.cs

    r1109 r1156  
    1010using HeuristicLab.CEDMA.Core;
    1111using HeuristicLab.PluginInfrastructure;
     12using HeuristicLab.CEDMA.DB.Interfaces;
    1213
    1314namespace HeuristicLab.CEDMA.Core {
     
    6263      suppressEvents = false;
    6364    }
     65
     66    private void dataGridView_MouseDoubleClick(object sender, MouseEventArgs e) {
     67      if (e.Button == MouseButtons.Left && e.Clicks == 2) {
     68        DataGridView.HitTestInfo hitInfo = dataGridView.HitTest(e.X, e.Y);
     69        ResultsEntry entry = (ResultsEntry)dataGridView.Rows[hitInfo.RowIndex].Tag;
     70        string serializedData =  (string)entry.Get(Ontology.PredicateSerializedData.Uri.Replace(Ontology.CedmaNameSpace, ""));
     71        var model = (IItem)PersistenceManager.RestoreFromGZip(Convert.FromBase64String(serializedData));
     72        PluginManager.ControlManager.ShowControl(model.CreateView());
     73      }
     74    }
    6475  }
    6576
Note: See TracChangeset for help on using the changeset viewer.