Changeset 1400
- Timestamp:
- 03/23/09 17:53:14 (16 years ago)
- Location:
- branches/New Persistence Exploration/Persistence
- Files:
-
- 2 added
- 1 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/New Persistence Exploration/Persistence/HeuristicLab.Persistence.GUI/PersistenceConfigurationForm.Designer.cs
r1399 r1400 25 25 private void InitializeComponent() { 26 26 System.Windows.Forms.TabPage nullFormatterConfig; 27 System.Windows.Forms.ListViewItem listViewItem1 = new System.Windows.Forms.ListViewItem("Bli"); 28 System.Windows.Forms.ListViewItem listViewItem2 = new System.Windows.Forms.ListViewItem("Bla"); 29 System.Windows.Forms.ListViewItem listViewItem3 = new System.Windows.Forms.ListViewItem("Blo"); 30 this.dataGridView1 = new System.Windows.Forms.DataGridView(); 31 this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); 32 this.Column2 = new System.Windows.Forms.DataGridViewCheckBoxColumn(); 33 this.Column3 = new System.Windows.Forms.DataGridViewComboBoxColumn(); 27 System.Windows.Forms.DataGridView dataGridView1; 28 System.Windows.Forms.DataGridViewTextBoxColumn Column1; 29 System.Windows.Forms.DataGridViewCheckBoxColumn Column2; 30 System.Windows.Forms.DataGridViewComboBoxColumn Column3; 31 System.Windows.Forms.ListViewItem listViewItem16 = new System.Windows.Forms.ListViewItem("Bli"); 32 System.Windows.Forms.ListViewItem listViewItem17 = new System.Windows.Forms.ListViewItem("Bla"); 33 System.Windows.Forms.ListViewItem listViewItem18 = new System.Windows.Forms.ListViewItem("Blo"); 34 System.Windows.Forms.SplitContainer splitContainer1; 35 System.Windows.Forms.SplitContainer splitContainer2; 36 System.Windows.Forms.Button updateButton; 37 System.Windows.Forms.Label label1; 34 38 this.decomposerList = new System.Windows.Forms.ListView(); 35 39 this.DecomposersColumn = new System.Windows.Forms.ColumnHeader(); 36 this.splitContainer1 = new System.Windows.Forms.SplitContainer(); 37 this.splitContainer2 = new System.Windows.Forms.SplitContainer(); 40 this.checkBox = new System.Windows.Forms.ListBox(); 38 41 this.formatterTabs = new System.Windows.Forms.TabControl(); 39 this.checkBox = new System.Windows.Forms.ListBox();40 42 nullFormatterConfig = new System.Windows.Forms.TabPage(); 43 dataGridView1 = new System.Windows.Forms.DataGridView(); 44 Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); 45 Column2 = new System.Windows.Forms.DataGridViewCheckBoxColumn(); 46 Column3 = new System.Windows.Forms.DataGridViewComboBoxColumn(); 47 splitContainer1 = new System.Windows.Forms.SplitContainer(); 48 splitContainer2 = new System.Windows.Forms.SplitContainer(); 49 updateButton = new System.Windows.Forms.Button(); 50 label1 = new System.Windows.Forms.Label(); 41 51 nullFormatterConfig.SuspendLayout(); 42 ((System.ComponentModel.ISupportInitialize)( this.dataGridView1)).BeginInit();43 this.splitContainer1.Panel1.SuspendLayout();44 this.splitContainer1.Panel2.SuspendLayout();45 this.splitContainer1.SuspendLayout();46 this.splitContainer2.Panel1.SuspendLayout();47 this.splitContainer2.Panel2.SuspendLayout();48 this.splitContainer2.SuspendLayout();52 ((System.ComponentModel.ISupportInitialize)(dataGridView1)).BeginInit(); 53 splitContainer1.Panel1.SuspendLayout(); 54 splitContainer1.Panel2.SuspendLayout(); 55 splitContainer1.SuspendLayout(); 56 splitContainer2.Panel1.SuspendLayout(); 57 splitContainer2.Panel2.SuspendLayout(); 58 splitContainer2.SuspendLayout(); 49 59 this.formatterTabs.SuspendLayout(); 50 60 this.SuspendLayout(); … … 52 62 // nullFormatterConfig 53 63 // 54 nullFormatterConfig.Controls.Add( this.dataGridView1);64 nullFormatterConfig.Controls.Add(dataGridView1); 55 65 nullFormatterConfig.Location = new System.Drawing.Point(4, 22); 56 66 nullFormatterConfig.Name = "nullFormatterConfig"; … … 62 72 // dataGridView1 63 73 // 64 this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;65 this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {66 this.Column1,67 this.Column2,68 this.Column3});69 this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;70 this.dataGridView1.Location = new System.Drawing.Point(0, 0);71 this.dataGridView1.Name = "dataGridView1";72 this.dataGridView1.Size = new System.Drawing.Size(386, 554);73 this.dataGridView1.TabIndex = 0;74 dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; 75 dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { 76 Column1, 77 Column2, 78 Column3}); 79 dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill; 80 dataGridView1.Location = new System.Drawing.Point(0, 0); 81 dataGridView1.Name = "dataGridView1"; 82 dataGridView1.Size = new System.Drawing.Size(386, 554); 83 dataGridView1.TabIndex = 0; 74 84 // 75 85 // Column1 76 86 // 77 this.Column1.HeaderText = "Column1";78 this.Column1.Name = "Column1";87 Column1.HeaderText = "Column1"; 88 Column1.Name = "Column1"; 79 89 // 80 90 // Column2 81 91 // 82 this.Column2.HeaderText = "Column2";83 this.Column2.Name = "Column2";92 Column2.HeaderText = "Column2"; 93 Column2.Name = "Column2"; 84 94 // 85 95 // Column3 86 96 // 87 this.Column3.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.ComboBox;88 this.Column3.HeaderText = "Column3";89 this.Column3.Name = "Column3";97 Column3.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.ComboBox; 98 Column3.HeaderText = "Column3"; 99 Column3.Name = "Column3"; 90 100 // 91 101 // decomposerList … … 100 110 this.decomposerList.GridLines = true; 101 111 this.decomposerList.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable; 102 listViewItem1 .Checked = true;103 listViewItem1 .StateImageIndex = 1;104 listViewItem1 .Tag = "";105 listViewItem 2.Checked = true;106 listViewItem 2.StateImageIndex = 1;107 listViewItem 3.Checked = true;108 listViewItem 3.StateImageIndex = 1;112 listViewItem16.Checked = true; 113 listViewItem16.StateImageIndex = 1; 114 listViewItem16.Tag = ""; 115 listViewItem17.Checked = true; 116 listViewItem17.StateImageIndex = 1; 117 listViewItem18.Checked = true; 118 listViewItem18.StateImageIndex = 1; 109 119 this.decomposerList.Items.AddRange(new System.Windows.Forms.ListViewItem[] { 110 listViewItem1 ,111 listViewItem 2,112 listViewItem 3});120 listViewItem16, 121 listViewItem17, 122 listViewItem18}); 113 123 this.decomposerList.Location = new System.Drawing.Point(0, 0); 114 124 this.decomposerList.Name = "decomposerList"; … … 131 141 // splitContainer1 132 142 // 133 this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;134 this.splitContainer1.Location = new System.Drawing.Point(0, 0);135 this.splitContainer1.Name = "splitContainer1";143 splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill; 144 splitContainer1.Location = new System.Drawing.Point(0, 0); 145 splitContainer1.Name = "splitContainer1"; 136 146 // 137 147 // splitContainer1.Panel1 138 148 // 139 this.splitContainer1.Panel1.Controls.Add(this.splitContainer2);149 splitContainer1.Panel1.Controls.Add(splitContainer2); 140 150 // 141 151 // splitContainer1.Panel2 142 152 // 143 this.splitContainer1.Panel2.Controls.Add(this.formatterTabs); 144 this.splitContainer1.Size = new System.Drawing.Size(597, 580); 145 this.splitContainer1.SplitterDistance = 199; 146 this.splitContainer1.TabIndex = 2; 153 splitContainer1.Panel2.Controls.Add(updateButton); 154 splitContainer1.Panel2.Controls.Add(this.formatterTabs); 155 splitContainer1.Size = new System.Drawing.Size(597, 580); 156 splitContainer1.SplitterDistance = 199; 157 splitContainer1.TabIndex = 2; 147 158 // 148 159 // splitContainer2 149 160 // 150 this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill;151 this.splitContainer2.Location = new System.Drawing.Point(0, 0);152 this.splitContainer2.Name = "splitContainer2";153 this.splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal;161 splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill; 162 splitContainer2.Location = new System.Drawing.Point(0, 0); 163 splitContainer2.Name = "splitContainer2"; 164 splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal; 154 165 // 155 166 // splitContainer2.Panel1 156 167 // 157 this.splitContainer2.Panel1.Controls.Add(this.decomposerList);168 splitContainer2.Panel1.Controls.Add(this.decomposerList); 158 169 // 159 170 // splitContainer2.Panel2 160 171 // 161 this.splitContainer2.Panel2.Controls.Add(this.checkBox); 162 this.splitContainer2.Size = new System.Drawing.Size(199, 580); 163 this.splitContainer2.SplitterDistance = 290; 164 this.splitContainer2.TabIndex = 1; 172 splitContainer2.Panel2.Controls.Add(label1); 173 splitContainer2.Panel2.Controls.Add(this.checkBox); 174 splitContainer2.Size = new System.Drawing.Size(199, 580); 175 splitContainer2.SplitterDistance = 290; 176 splitContainer2.TabIndex = 1; 177 // 178 // checkBox 179 // 180 this.checkBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 181 | System.Windows.Forms.AnchorStyles.Left) 182 | System.Windows.Forms.AnchorStyles.Right))); 183 this.checkBox.Enabled = false; 184 this.checkBox.FormattingEnabled = true; 185 this.checkBox.Location = new System.Drawing.Point(0, 18); 186 this.checkBox.Name = "checkBox"; 187 this.checkBox.Size = new System.Drawing.Size(199, 264); 188 this.checkBox.TabIndex = 0; 165 189 // 166 190 // formatterTabs … … 174 198 this.formatterTabs.TabIndex = 0; 175 199 // 176 // checkBox 177 // 178 this.checkBox.Dock = System.Windows.Forms.DockStyle.Fill; 179 this.checkBox.FormattingEnabled = true; 180 this.checkBox.Location = new System.Drawing.Point(0, 0); 181 this.checkBox.Name = "checkBox"; 182 this.checkBox.Size = new System.Drawing.Size(199, 277); 183 this.checkBox.TabIndex = 0; 200 // updateButton 201 // 202 updateButton.Dock = System.Windows.Forms.DockStyle.Bottom; 203 updateButton.Location = new System.Drawing.Point(0, 557); 204 updateButton.Name = "updateButton"; 205 updateButton.Size = new System.Drawing.Size(394, 23); 206 updateButton.TabIndex = 1; 207 updateButton.Text = "Define Configuration"; 208 updateButton.UseVisualStyleBackColor = true; 209 updateButton.Click += new System.EventHandler(this.updateButton_Click); 210 // 211 // label1 212 // 213 label1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 214 | System.Windows.Forms.AnchorStyles.Right))); 215 label1.Location = new System.Drawing.Point(3, 0); 216 label1.Name = "label1"; 217 label1.Size = new System.Drawing.Size(193, 13); 218 label1.TabIndex = 1; 219 label1.Text = "Configuration Preview"; 220 label1.TextAlign = System.Drawing.ContentAlignment.TopCenter; 184 221 // 185 222 // PersistenceConfigurationForm … … 188 225 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 189 226 this.ClientSize = new System.Drawing.Size(597, 580); 190 this.Controls.Add( this.splitContainer1);227 this.Controls.Add(splitContainer1); 191 228 this.Name = "PersistenceConfigurationForm"; 192 229 this.Text = "PersistenceConfigurationForm"; 193 230 nullFormatterConfig.ResumeLayout(false); 194 ((System.ComponentModel.ISupportInitialize)( this.dataGridView1)).EndInit();195 this.splitContainer1.Panel1.ResumeLayout(false);196 this.splitContainer1.Panel2.ResumeLayout(false);197 this.splitContainer1.ResumeLayout(false);198 this.splitContainer2.Panel1.ResumeLayout(false);199 this.splitContainer2.Panel2.ResumeLayout(false);200 this.splitContainer2.ResumeLayout(false);231 ((System.ComponentModel.ISupportInitialize)(dataGridView1)).EndInit(); 232 splitContainer1.Panel1.ResumeLayout(false); 233 splitContainer1.Panel2.ResumeLayout(false); 234 splitContainer1.ResumeLayout(false); 235 splitContainer2.Panel1.ResumeLayout(false); 236 splitContainer2.Panel2.ResumeLayout(false); 237 splitContainer2.ResumeLayout(false); 201 238 this.formatterTabs.ResumeLayout(false); 202 239 this.ResumeLayout(false); … … 208 245 private System.Windows.Forms.ListView decomposerList; 209 246 private System.Windows.Forms.ColumnHeader DecomposersColumn; 210 private System.Windows.Forms.SplitContainer splitContainer1;211 private System.Windows.Forms.SplitContainer splitContainer2;212 247 private System.Windows.Forms.TabControl formatterTabs; 213 private System.Windows.Forms.DataGridView dataGridView1;214 private System.Windows.Forms.DataGridViewTextBoxColumn Column1;215 private System.Windows.Forms.DataGridViewCheckBoxColumn Column2;216 private System.Windows.Forms.DataGridViewComboBoxColumn Column3;217 248 private System.Windows.Forms.ListBox checkBox; 218 249 } -
branches/New Persistence Exploration/Persistence/HeuristicLab.Persistence.GUI/PersistenceConfigurationForm.cs
r1399 r1400 4 4 using System.Linq; 5 5 using System.Windows.Forms; 6 using HeuristicLab.Persistence.Core; 6 7 using HeuristicLab.Persistence.Default.Xml; 7 8 using HeuristicLab.Persistence.Interfaces; … … 29 30 private void initializeFormatterPages() { 30 31 formatterTabs.TabPages.Clear(); 31 foreach ( var formats in ConfigurationService.Instance. AllFormatters ) {32 foreach ( var formats in ConfigurationService.Instance.Formatters ) { 32 33 TabPage page = new TabPage(formats.Key.Name) {Tag = formats.Key}; 33 34 formatterTabs.TabPages.Add(page); 34 35 DataGridView gridView = new DataGridView { 35 36 37 38 39 40 41 36 Dock = DockStyle.Fill, 37 EditMode = DataGridViewEditMode.EditOnEnter, 38 AllowUserToAddRows = false, 39 AllowUserToDeleteRows = false, 40 AllowUserToResizeRows = false, 41 Name = "GridView", 42 }; 42 43 gridView.CellValueChanged += gridView_CellValueChanged; 43 44 gridView.Columns.Add(new DataGridViewTextBoxColumn { … … 124 125 private void initializeDecomposerList() { 125 126 decomposerList.Items.Clear(); 126 foreach ( IDecomposer decomposer in ConfigurationService.Instance. AllDecomposers ) {127 foreach ( IDecomposer decomposer in ConfigurationService.Instance.Decomposers ) { 127 128 var item = decomposerList.Items.Add(decomposer.GetType().Name); 128 129 item.Checked = true; … … 219 220 } 220 221 return new Configuration(formatters, GetDecomposers()); 222 } 223 224 private void updateButton_Click(object sender, EventArgs e) { 225 IFormat format = (IFormat)formatterTabs.SelectedTab.Tag; 226 if (format != null) 227 ConfigurationService.Instance.DefineConfiguration( 228 format, 229 GetCurrentConfiguration(format)); 221 230 } 222 231 -
branches/New Persistence Exploration/Persistence/HeuristicLab.Persistence.GUI/PersistenceConfigurationForm.resx
r1399 r1400 121 121 <value>False</value> 122 122 </metadata> 123 <metadata name="dataGridView1.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 124 <value>False</value> 125 </metadata> 126 <metadata name="Column1.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 127 <value>False</value> 128 </metadata> 123 129 <metadata name="Column1.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 124 130 <value>True</value> 131 </metadata> 132 <metadata name="Column2.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 133 <value>False</value> 125 134 </metadata> 126 135 <metadata name="Column2.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> … … 130 139 <value>True</value> 131 140 </metadata> 141 <metadata name="Column3.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 142 <value>False</value> 143 </metadata> 144 <metadata name="splitContainer1.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 145 <value>False</value> 146 </metadata> 147 <metadata name="splitContainer2.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 148 <value>False</value> 149 </metadata> 150 <metadata name="label1.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 151 <value>False</value> 152 </metadata> 153 <metadata name="updateButton.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 154 <value>False</value> 155 </metadata> 132 156 </root> -
branches/New Persistence Exploration/Persistence/Persistence/HeuristicLab.Persistence.csproj
r1363 r1400 55 55 </ItemGroup> 56 56 <ItemGroup> 57 <Compile Include="Core\Configuration.cs" /> 57 58 <Compile Include="Default\Decomposers\EnumerableDecomposer.cs" /> 58 59 <Compile Include="Default\Decomposers\ArrayDecomposer.cs" /> … … 76 77 <Compile Include="Interfaces\IDecomposer.cs" /> 77 78 <Compile Include="Interfaces\IFormatter.cs" /> 78 <Compile Include="Core\ PersistenceConfiguration.cs" />79 <Compile Include="Core\ConfigurationService.cs" /> 79 80 <Compile Include="Properties\AssemblyInfo.cs" /> 80 81 <Compile Include="Core\Serializer.cs" />
Note: See TracChangeset
for help on using the changeset viewer.