Changeset 4011 for trunk/sources/HeuristicLab.Optimization.Views
- Timestamp:
- 07/07/10 14:36:22 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Optimization.Views/3.3
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimization.Views/3.3/AlgorithmView.Designer.cs
r3764 r4011 50 50 this.parameterCollectionView = new HeuristicLab.Core.Views.ParameterCollectionView(); 51 51 this.problemTabPage = new System.Windows.Forms.TabPage(); 52 this.problemPanel = new System.Windows.Forms.Panel();53 52 this.problemViewHost = new HeuristicLab.MainForm.WindowsForms.ViewHost(); 54 53 this.openProblemButton = new System.Windows.Forms.Button(); … … 69 68 this.parametersTabPage.SuspendLayout(); 70 69 this.problemTabPage.SuspendLayout(); 71 this.problemPanel.SuspendLayout();72 70 this.resultsTabPage.SuspendLayout(); 73 71 this.runsTabPage.SuspendLayout(); … … 123 121 // problemTabPage 124 122 // 125 this.problemTabPage.Controls.Add(this.problem Panel);123 this.problemTabPage.Controls.Add(this.problemViewHost); 126 124 this.problemTabPage.Controls.Add(this.openProblemButton); 127 125 this.problemTabPage.Controls.Add(this.newProblemButton); … … 134 132 this.problemTabPage.UseVisualStyleBackColor = true; 135 133 // 136 // problemPanel137 //138 this.problemPanel.AllowDrop = true;139 this.problemPanel.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)140 | System.Windows.Forms.AnchorStyles.Left)141 | System.Windows.Forms.AnchorStyles.Right)));142 this.problemPanel.Controls.Add(this.problemViewHost);143 this.problemPanel.Location = new System.Drawing.Point(6, 36);144 this.problemPanel.Name = "problemPanel";145 this.problemPanel.Size = new System.Drawing.Size(659, 332);146 this.problemPanel.TabIndex = 3;147 this.problemPanel.DragOver += new System.Windows.Forms.DragEventHandler(this.problemPanel_DragEnterOver);148 this.problemPanel.DragDrop += new System.Windows.Forms.DragEventHandler(this.problemPanel_DragDrop);149 this.problemPanel.DragEnter += new System.Windows.Forms.DragEventHandler(this.problemPanel_DragEnterOver);150 //151 134 // problemViewHost 152 135 // 136 this.problemViewHost.AllowDrop = true; 153 137 this.problemViewHost.Content = null; 154 this.problemViewHost.Dock = System.Windows.Forms.DockStyle.Fill; 155 this.problemViewHost.Location = new System.Drawing.Point(0, 0); 138 this.problemViewHost.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 139 | System.Windows.Forms.AnchorStyles.Left) 140 | System.Windows.Forms.AnchorStyles.Right))); 141 this.problemViewHost.Location = new System.Drawing.Point(6, 36); 156 142 this.problemViewHost.Name = "problemViewHost"; 157 143 this.problemViewHost.Size = new System.Drawing.Size(659, 332); 158 this.problemViewHost.TabIndex = 0;144 this.problemViewHost.TabIndex = 3; 159 145 this.problemViewHost.ViewType = null; 146 this.problemViewHost.DragOver += new System.Windows.Forms.DragEventHandler(this.problemViewHost_DragEnterOver); 147 this.problemViewHost.DragDrop += new System.Windows.Forms.DragEventHandler(this.problemViewHost_DragDrop); 148 this.problemViewHost.DragEnter += new System.Windows.Forms.DragEventHandler(this.problemViewHost_DragEnterOver); 160 149 // 161 150 // openProblemButton … … 327 316 this.parametersTabPage.ResumeLayout(false); 328 317 this.problemTabPage.ResumeLayout(false); 329 this.problemPanel.ResumeLayout(false);330 318 this.resultsTabPage.ResumeLayout(false); 331 319 this.runsTabPage.ResumeLayout(false); … … 355 343 protected System.Windows.Forms.TabPage runsTabPage; 356 344 protected RunCollectionView runsView; 357 protected System.Windows.Forms.Panel problemPanel;358 359 345 } 360 346 } -
trunk/sources/HeuristicLab.Optimization.Views/3.3/AlgorithmView.cs
r3904 r4011 216 216 Content.Prepare(false); 217 217 } 218 protected virtual void problem Panel_DragEnterOver(object sender, DragEventArgs e) {218 protected virtual void problemViewHost_DragEnterOver(object sender, DragEventArgs e) { 219 219 e.Effect = DragDropEffects.None; 220 220 Type type = e.Data.GetData("Type") as Type; … … 227 227 } 228 228 } 229 protected virtual void problem Panel_DragDrop(object sender, DragEventArgs e) {229 protected virtual void problemViewHost_DragDrop(object sender, DragEventArgs e) { 230 230 if (e.Effect != DragDropEffects.None) { 231 231 IProblem problem = e.Data.GetData("Value") as IProblem; -
trunk/sources/HeuristicLab.Optimization.Views/3.3/BatchRunView.Designer.cs
r3764 r4011 48 48 this.tabControl = new System.Windows.Forms.TabControl(); 49 49 this.algorithmTabPage = new System.Windows.Forms.TabPage(); 50 this.algorithmPanel = new System.Windows.Forms.Panel();51 50 this.algorithmViewHost = new HeuristicLab.MainForm.WindowsForms.ViewHost(); 52 51 this.openAlgorithmButton = new System.Windows.Forms.Button(); … … 66 65 this.tabControl.SuspendLayout(); 67 66 this.algorithmTabPage.SuspendLayout(); 68 this.algorithmPanel.SuspendLayout();69 67 this.runsTabPage.SuspendLayout(); 70 68 ((System.ComponentModel.ISupportInitialize)(this.repetitionsNumericUpDown)).BeginInit(); … … 96 94 // algorithmTabPage 97 95 // 98 this.algorithmTabPage.Controls.Add(this.algorithm Panel);96 this.algorithmTabPage.Controls.Add(this.algorithmViewHost); 99 97 this.algorithmTabPage.Controls.Add(this.openAlgorithmButton); 100 98 this.algorithmTabPage.Controls.Add(this.newAlgorithmButton); … … 107 105 this.algorithmTabPage.UseVisualStyleBackColor = true; 108 106 // 109 // algorithmPanel 110 // 111 this.algorithmPanel.AllowDrop = true; 112 this.algorithmPanel.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 107 // algorithmViewHost 108 // 109 this.algorithmViewHost.Content = null; 110 this.algorithmViewHost.AllowDrop = true; 111 this.algorithmViewHost.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 113 112 | System.Windows.Forms.AnchorStyles.Left) 114 113 | System.Windows.Forms.AnchorStyles.Right))); 115 this.algorithmPanel.Controls.Add(this.algorithmViewHost); 116 this.algorithmPanel.Location = new System.Drawing.Point(6, 36); 117 this.algorithmPanel.Name = "algorithmPanel"; 118 this.algorithmPanel.Size = new System.Drawing.Size(659, 306); 119 this.algorithmPanel.TabIndex = 3; 120 this.algorithmPanel.DragOver += new System.Windows.Forms.DragEventHandler(this.algorithmPanel_DragEnterOver); 121 this.algorithmPanel.DragDrop += new System.Windows.Forms.DragEventHandler(this.algorithmPanel_DragDrop); 122 this.algorithmPanel.DragEnter += new System.Windows.Forms.DragEventHandler(this.algorithmPanel_DragEnterOver); 123 // 124 // algorithmViewHost 125 // 126 this.algorithmViewHost.Content = null; 127 this.algorithmViewHost.Dock = System.Windows.Forms.DockStyle.Fill; 128 this.algorithmViewHost.Location = new System.Drawing.Point(0, 0); 114 this.algorithmViewHost.Location = new System.Drawing.Point(6, 36); 129 115 this.algorithmViewHost.Name = "algorithmViewHost"; 130 116 this.algorithmViewHost.Size = new System.Drawing.Size(659, 306); 131 this.algorithmViewHost.TabIndex = 0;117 this.algorithmViewHost.TabIndex = 3; 132 118 this.algorithmViewHost.ViewType = null; 119 this.algorithmViewHost.DragOver += new System.Windows.Forms.DragEventHandler(this.algorithmViewHost_DragEnterOver); 120 this.algorithmViewHost.DragDrop += new System.Windows.Forms.DragEventHandler(this.algorithmViewHost_DragDrop); 121 this.algorithmViewHost.DragEnter += new System.Windows.Forms.DragEventHandler(this.algorithmViewHost_DragEnterOver); 133 122 // 134 123 // openAlgorithmButton … … 317 306 this.tabControl.ResumeLayout(false); 318 307 this.algorithmTabPage.ResumeLayout(false); 319 this.algorithmPanel.ResumeLayout(false);320 308 this.runsTabPage.ResumeLayout(false); 321 309 ((System.ComponentModel.ISupportInitialize)(this.repetitionsNumericUpDown)).EndInit(); … … 342 330 private RunCollectionView runsView; 343 331 private System.Windows.Forms.Button pauseButton; 344 private System.Windows.Forms.Panel algorithmPanel;345 346 332 } 347 333 } -
trunk/sources/HeuristicLab.Optimization.Views/3.3/BatchRunView.cs
r3904 r4011 140 140 } 141 141 private void repetitionsNumericUpDown_ValueChanged(object sender, EventArgs e) { 142 Content.Repetitions = (int)repetitionsNumericUpDown.Value; 142 if (Content != null) 143 Content.Repetitions = (int)repetitionsNumericUpDown.Value; 143 144 } 144 145 private void newAlgorithmButton_Click(object sender, EventArgs e) { … … 197 198 Content.Prepare(false); 198 199 } 199 private void algorithm Panel_DragEnterOver(object sender, DragEventArgs e) {200 private void algorithmViewHost_DragEnterOver(object sender, DragEventArgs e) { 200 201 e.Effect = DragDropEffects.None; 201 202 if (ReadOnly) … … 210 211 } 211 212 } 212 private void algorithm Panel_DragDrop(object sender, DragEventArgs e) {213 private void algorithmViewHost_DragDrop(object sender, DragEventArgs e) { 213 214 if (e.Effect != DragDropEffects.None) { 214 215 IAlgorithm algorithm = e.Data.GetData("Value") as IAlgorithm; -
trunk/sources/HeuristicLab.Optimization.Views/3.3/EngineAlgorithmView.Designer.cs
r3764 r4011 58 58 this.resultsTabPage.SuspendLayout(); 59 59 this.runsTabPage.SuspendLayout(); 60 this.problemPanel.SuspendLayout();61 60 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); 62 61 this.engineTabPage.SuspendLayout(); … … 148 147 // problemPanel 149 148 // 150 this.problem Panel.Size = new System.Drawing.Size(693, 399);149 this.problemViewHost.Size = new System.Drawing.Size(693, 399); 151 150 // 152 151 // nameTextBox … … 276 275 this.resultsTabPage.ResumeLayout(false); 277 276 this.runsTabPage.ResumeLayout(false); 278 this.problemPanel.ResumeLayout(false);279 277 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit(); 280 278 this.engineTabPage.ResumeLayout(false); -
trunk/sources/HeuristicLab.Optimization.Views/3.3/RunView.cs
r3904 r4011 103 103 } 104 104 105 private string selectedName; 105 106 private void FillListView() { 106 string selectedName = null;107 107 if (listView.SelectedItems.Count == 1) selectedName = listView.SelectedItems[0].SubItems[0].Text; 108 108 … … 117 117 for (int i = 0; i < listView.Columns.Count; i++) 118 118 listView.Columns[i].AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); 119 selectedName = null; 119 120 } 120 121 } -
trunk/sources/HeuristicLab.Optimization.Views/3.3/UserDefinedAlgorithmView.Designer.cs
r3770 r4011 54 54 this.resultsTabPage.SuspendLayout(); 55 55 this.runsTabPage.SuspendLayout(); 56 this.problemPanel.SuspendLayout();57 56 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); 58 57 this.globalScopeTabPage.SuspendLayout(); … … 152 151 this.resultsTabPage.ResumeLayout(false); 153 152 this.runsTabPage.ResumeLayout(false); 154 this.problemPanel.ResumeLayout(false);155 153 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit(); 156 154 this.globalScopeTabPage.ResumeLayout(false);
Note: See TracChangeset
for help on using the changeset viewer.