Changeset 3300
- Timestamp:
- 04/11/10 04:30:31 (15 years ago)
- Location:
- trunk/sources
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimization.Views/3.3/RunView.Designer.cs
r3281 r3300 53 53 this.nameColumnHeader = new System.Windows.Forms.ColumnHeader(); 54 54 this.valueColumnHeader = new System.Windows.Forms.ColumnHeader(); 55 this.imageList = new System.Windows.Forms.ImageList(this.components); 55 56 this.detailsGroupBox = new System.Windows.Forms.GroupBox(); 56 57 this.viewHost = new HeuristicLab.MainForm.WindowsForms.ViewHost(); 57 this. imageList = new System.Windows.Forms.ImageList(this.components);58 this.showAlgorithmButton = new System.Windows.Forms.Button(); 58 59 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); 59 60 this.parametersResultsGroupBox.SuspendLayout(); … … 82 83 this.parametersResultsGroupBox.Location = new System.Drawing.Point(0, 52); 83 84 this.parametersResultsGroupBox.Name = "parametersResultsGroupBox"; 84 this.parametersResultsGroupBox.Size = new System.Drawing.Size(495, 2 99);85 this.parametersResultsGroupBox.Size = new System.Drawing.Size(495, 272); 85 86 this.parametersResultsGroupBox.TabIndex = 4; 86 87 this.parametersResultsGroupBox.TabStop = false; … … 100 101 // 101 102 this.splitContainer.Panel2.Controls.Add(this.detailsGroupBox); 102 this.splitContainer.Size = new System.Drawing.Size(489, 2 80);103 this.splitContainer.Size = new System.Drawing.Size(489, 253); 103 104 this.splitContainer.SplitterDistance = 177; 104 105 this.splitContainer.TabIndex = 0; … … 125 126 this.listView.Name = "listView"; 126 127 this.listView.ShowItemToolTips = true; 127 this.listView.Size = new System.Drawing.Size(171, 2 74);128 this.listView.Size = new System.Drawing.Size(171, 247); 128 129 this.listView.SmallImageList = this.imageList; 129 130 this.listView.Sorting = System.Windows.Forms.SortOrder.Ascending; … … 132 133 this.listView.View = System.Windows.Forms.View.Details; 133 134 this.listView.SelectedIndexChanged += new System.EventHandler(this.listView_SelectedIndexChanged); 135 this.listView.DoubleClick += new System.EventHandler(this.listView_DoubleClick); 136 this.listView.ItemDrag += new System.Windows.Forms.ItemDragEventHandler(this.listView_ItemDrag); 134 137 // 135 138 // nameColumnHeader … … 140 143 // 141 144 this.valueColumnHeader.Text = "Value"; 145 // 146 // imageList 147 // 148 this.imageList.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit; 149 this.imageList.ImageSize = new System.Drawing.Size(16, 16); 150 this.imageList.TransparentColor = System.Drawing.Color.Transparent; 142 151 // 143 152 // detailsGroupBox … … 149 158 this.detailsGroupBox.Location = new System.Drawing.Point(3, 3); 150 159 this.detailsGroupBox.Name = "detailsGroupBox"; 151 this.detailsGroupBox.Size = new System.Drawing.Size(302, 2 74);160 this.detailsGroupBox.Size = new System.Drawing.Size(302, 247); 152 161 this.detailsGroupBox.TabIndex = 0; 153 162 this.detailsGroupBox.TabStop = false; … … 162 171 this.viewHost.Location = new System.Drawing.Point(6, 19); 163 172 this.viewHost.Name = "viewHost"; 164 this.viewHost.Size = new System.Drawing.Size(290, 2 49);173 this.viewHost.Size = new System.Drawing.Size(290, 222); 165 174 this.viewHost.TabIndex = 0; 166 175 this.viewHost.ViewType = null; 167 176 // 168 // imageList 169 // 170 this.imageList.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit; 171 this.imageList.ImageSize = new System.Drawing.Size(16, 16); 172 this.imageList.TransparentColor = System.Drawing.Color.Transparent; 177 // showAlgorithmButton 178 // 179 this.showAlgorithmButton.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) 180 | System.Windows.Forms.AnchorStyles.Right))); 181 this.showAlgorithmButton.Location = new System.Drawing.Point(0, 330); 182 this.showAlgorithmButton.Name = "showAlgorithmButton"; 183 this.showAlgorithmButton.Size = new System.Drawing.Size(495, 23); 184 this.showAlgorithmButton.TabIndex = 5; 185 this.showAlgorithmButton.Text = "&Show Algorithm"; 186 this.toolTip.SetToolTip(this.showAlgorithmButton, "Show the algorithm which produced these results"); 187 this.showAlgorithmButton.UseVisualStyleBackColor = true; 188 this.showAlgorithmButton.Click += new System.EventHandler(this.showAlgorithmButton_Click); 173 189 // 174 190 // RunView … … 177 193 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 178 194 this.Controls.Add(this.parametersResultsGroupBox); 195 this.Controls.Add(this.showAlgorithmButton); 179 196 this.Name = "RunView"; 180 this.Size = new System.Drawing.Size(495, 351); 197 this.Size = new System.Drawing.Size(495, 353); 198 this.Controls.SetChildIndex(this.showAlgorithmButton, 0); 181 199 this.Controls.SetChildIndex(this.parametersResultsGroupBox, 0); 182 200 this.Controls.SetChildIndex(this.descriptionLabel, 0); … … 205 223 private HeuristicLab.MainForm.WindowsForms.ViewHost viewHost; 206 224 private System.Windows.Forms.ImageList imageList; 225 private System.Windows.Forms.Button showAlgorithmButton; 207 226 208 227 } -
trunk/sources/HeuristicLab.Optimization.Views/3.3/RunView.cs
r3280 r3300 117 117 } 118 118 } 119 private void listView_DoubleClick(object sender, EventArgs e) { 120 if (listView.SelectedItems.Count == 1) { 121 IItem item = (IItem)listView.SelectedItems[0].Tag; 122 IView view = MainFormManager.CreateDefaultView(item); 123 if (view != null) view.Show(); 124 } 125 } 126 private void listView_ItemDrag(object sender, ItemDragEventArgs e) { 127 ListViewItem listViewItem = (ListViewItem)e.Item; 128 IItem item = (IItem)listViewItem.Tag; 129 DataObject data = new DataObject(); 130 data.SetData("Type", item.GetType()); 131 data.SetData("Value", item); 132 DragDropEffects result = DoDragDrop(data, DragDropEffects.Copy | DragDropEffects.Link); 133 } 134 private void showAlgorithmButton_Click(object sender, EventArgs e) { 135 MainFormManager.CreateDefaultView(Content.Algorithm).Show(); 136 } 119 137 } 120 138 } -
trunk/sources/HeuristicLab.Optimization/3.3/Run.cs
r3280 r3300 77 77 private void Initialize(IAlgorithm algorithm) { 78 78 this.algorithm = algorithm; 79 this.algorithm.Runs.Clear(); 79 80 parameters = new Dictionary<string, IItem>(); 80 81 results = new Dictionary<string, IItem>();
Note: See TracChangeset
for help on using the changeset viewer.