- Timestamp:
- 03/03/17 11:41:43 (8 years ago)
- Location:
- branches/PersistenceOverhaul/HeuristicLab.Persistence.GUI/3.3
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PersistenceOverhaul/HeuristicLab.Persistence.GUI/3.3/PersistenceAnalysis.cs
r11172 r14711 87 87 } 88 88 89 /* private static bool IsCorrectlyStorable( Typetype) {89 /* private static bool IsCorrectlyStorable(MemberSelection type) { 90 90 if (StorableAttribute.GetStorableMembers(type).Count() > 0) { 91 if (!Storable ClassAttribute.IsStorableType(type, true))91 if (!StorableTypeAttribute.IsStorableType(type, true)) 92 92 return false; 93 if (type.GetConstructor(BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public, null, Type.EmptyTypes, null) == null &&93 if (type.GetConstructor(BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public, null, MemberSelection.EmptyTypes, null) == null && 94 94 StorableConstructorAttribute.GetStorableConstructor(type) == null) 95 95 return false; -
branches/PersistenceOverhaul/HeuristicLab.Persistence.GUI/3.3/PersistenceConfigurationForm.cs
r11172 r14711 85 85 private void UpdatePrimitiveSerializersGrid(DataGridView primitiveSerializersGrid, Configuration config) { 86 86 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]); 89 89 if (primitiveSerializer == null) { 90 90 row.Cells["Active"].Value = false; … … 194 194 gridView.CellValueChanged += gridView_CellValueChanged; 195 195 gridView.Columns.Add(new DataGridViewTextBoxColumn { 196 Name = " Type", ReadOnly = true,196 Name = "MemberSelection", ReadOnly = true, 197 197 AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill 198 198 }); … … 246 246 foreach (var primitiveSerializersMapping in primitiveSerializersMap) { 247 247 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; 250 250 row.Cells["Active"].Value = true; 251 251 var comboBoxCell = (DataGridViewComboBoxCell)row.Cells["Primitive Serializer"]; … … 406 406 var primitiveSerializers = new List<IPrimitiveSerializer>(); 407 407 foreach (DataGridViewRow row in primitiveSerializersGrid.Rows) { 408 if (row.Cells[" Type"].Value != null &&408 if (row.Cells["MemberSelection"].Value != null && 409 409 row.Cells["Active"].Value != null && 410 410 row.Cells["Primitive Serializer"].Value != null && -
branches/PersistenceOverhaul/HeuristicLab.Persistence.GUI/3.3/PersistenceConfigurationForm.resx
r4477 r14711 1 <?xml version="1.0" encoding="utf-8"?>1 <?xml version="1.0" encoding="utf-8"?> 2 2 <root> 3 3 <!-- … … 63 63 <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> 64 64 <xsd:element name="root" msdata:IsDataSet="true"> 65 <xsd:complex Type>65 <xsd:complexMemberSelection> 66 66 <xsd:choice maxOccurs="unbounded"> 67 67 <xsd:element name="metadata"> 68 <xsd:complex Type>68 <xsd:complexMemberSelection> 69 69 <xsd:sequence> 70 <xsd:element name="value" type="xsd:string" minOccurs="0" />70 <xsd:element name="value" memberSelection="xsd:string" minOccurs="0" /> 71 71 </xsd:sequence> 72 <xsd:attribute name="name" use="required" type="xsd:string" />73 <xsd:attribute name=" type" type="xsd:string" />74 <xsd:attribute name="mime type" type="xsd:string" />72 <xsd:attribute name="name" use="required" memberSelection="xsd:string" /> 73 <xsd:attribute name="memberSelection" memberSelection="xsd:string" /> 74 <xsd:attribute name="mimememberSelection" memberSelection="xsd:string" /> 75 75 <xsd:attribute ref="xml:space" /> 76 </xsd:complex Type>76 </xsd:complexMemberSelection> 77 77 </xsd:element> 78 78 <xsd:element name="assembly"> 79 <xsd:complex Type>80 <xsd:attribute name="alias" type="xsd:string" />81 <xsd:attribute name="name" type="xsd:string" />82 </xsd:complex Type>79 <xsd:complexMemberSelection> 80 <xsd:attribute name="alias" memberSelection="xsd:string" /> 81 <xsd:attribute name="name" memberSelection="xsd:string" /> 82 </xsd:complexMemberSelection> 83 83 </xsd:element> 84 84 <xsd:element name="data"> 85 <xsd:complex Type>85 <xsd:complexMemberSelection> 86 86 <xsd:sequence> 87 <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />88 <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />87 <xsd:element name="value" memberSelection="xsd:string" minOccurs="0" msdata:Ordinal="1" /> 88 <xsd:element name="comment" memberSelection="xsd:string" minOccurs="0" msdata:Ordinal="2" /> 89 89 </xsd:sequence> 90 <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />91 <xsd:attribute name=" type" type="xsd:string" msdata:Ordinal="3" />92 <xsd:attribute name="mime type" type="xsd:string" msdata:Ordinal="4" />90 <xsd:attribute name="name" memberSelection="xsd:string" use="required" msdata:Ordinal="1" /> 91 <xsd:attribute name="memberSelection" memberSelection="xsd:string" msdata:Ordinal="3" /> 92 <xsd:attribute name="mimememberSelection" memberSelection="xsd:string" msdata:Ordinal="4" /> 93 93 <xsd:attribute ref="xml:space" /> 94 </xsd:complex Type>94 </xsd:complexMemberSelection> 95 95 </xsd:element> 96 96 <xsd:element name="resheader"> 97 <xsd:complex Type>97 <xsd:complexMemberSelection> 98 98 <xsd:sequence> 99 <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />99 <xsd:element name="value" memberSelection="xsd:string" minOccurs="0" msdata:Ordinal="1" /> 100 100 </xsd:sequence> 101 <xsd:attribute name="name" type="xsd:string" use="required" />102 </xsd:complex Type>101 <xsd:attribute name="name" memberSelection="xsd:string" use="required" /> 102 </xsd:complexMemberSelection> 103 103 </xsd:element> 104 104 </xsd:choice> 105 </xsd:complex Type>105 </xsd:complexMemberSelection> 106 106 </xsd:element> 107 107 </xsd:schema> -
branches/PersistenceOverhaul/HeuristicLab.Persistence.GUI/3.3/app.config
r11623 r14711 1 <?xml version="1.0" encoding="utf-8"?>1 <?xml version="1.0" encoding="utf-8"?> 2 2 <configuration> 3 3 <configSections> 4 <sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">5 <section name="HeuristicLab.Persistence.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false"/>4 <sectionGroup name="userSettings" memberSelection="System.Configuration.UserSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 5 <section name="HeuristicLab.Persistence.Properties.Settings" memberSelection="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false"/> 6 6 </sectionGroup> 7 7 </configSections> … … 11 11 <value/> 12 12 </setting> 13 <setting name="customConfigurations TypeCache" serializeAs="String">13 <setting name="customConfigurationsMemberSelectionCache" serializeAs="String"> 14 14 <value/> 15 15 </setting>
Note: See TracChangeset
for help on using the changeset viewer.