Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/03/17 11:41:43 (8 years ago)
Author:
gkronber
Message:

#2520

  • renamed StorableClass -> StorableType
  • changed persistence to use GUIDs instead of type names
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PersistenceOverhaul/HeuristicLab.Persistence.GUI/3.3/PersistenceConfigurationForm.cs

    r11172 r14711  
    8585    private void UpdatePrimitiveSerializersGrid(DataGridView primitiveSerializersGrid, Configuration config) {
    8686      foreach (DataGridViewRow row in primitiveSerializersGrid.Rows) {
    87         if (row.Cells["Type"] != null) {
    88           IPrimitiveSerializer primitiveSerializer = config.GetPrimitiveSerializer(typeNameTable[(string)row.Cells["Type"].Value]);
     87        if (row.Cells["MemberSelection"] != null) {
     88          IPrimitiveSerializer primitiveSerializer = config.GetPrimitiveSerializer(typeNameTable[(string)row.Cells["MemberSelection"].Value]);
    8989          if (primitiveSerializer == null) {
    9090            row.Cells["Active"].Value = false;
     
    194194      gridView.CellValueChanged += gridView_CellValueChanged;
    195195      gridView.Columns.Add(new DataGridViewTextBoxColumn {
    196         Name = "Type", ReadOnly = true,
     196        Name = "MemberSelection", ReadOnly = true,
    197197        AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill
    198198      });
     
    246246      foreach (var primitiveSerializersMapping in primitiveSerializersMap) {
    247247        var row = gridView.Rows[gridView.Rows.Add()];
    248         row.Cells["Type"].Value = primitiveSerializersMapping.Key;
    249         row.Cells["Type"].ToolTipText = primitiveSerializersMapping.Key;
     248        row.Cells["MemberSelection"].Value = primitiveSerializersMapping.Key;
     249        row.Cells["MemberSelection"].ToolTipText = primitiveSerializersMapping.Key;
    250250        row.Cells["Active"].Value = true;
    251251        var comboBoxCell = (DataGridViewComboBoxCell)row.Cells["Primitive Serializer"];
     
    406406      var primitiveSerializers = new List<IPrimitiveSerializer>();
    407407      foreach (DataGridViewRow row in primitiveSerializersGrid.Rows) {
    408         if (row.Cells["Type"].Value != null &&
     408        if (row.Cells["MemberSelection"].Value != null &&
    409409             row.Cells["Active"].Value != null &&
    410410             row.Cells["Primitive Serializer"].Value != null &&
Note: See TracChangeset for help on using the changeset viewer.