Changeset 12239
- Timestamp:
- 03/23/15 15:20:13 (10 years ago)
- Location:
- branches/NewItemDialog/HeuristicLab.Optimizer/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/NewItemDialog/HeuristicLab.Optimizer/3.3/NewItemDialog.Designer.cs
r12215 r12239 51 51 this.toolTip = new System.Windows.Forms.ToolTip(this.components); 52 52 this.searchLabel = new System.Windows.Forms.Label(); 53 this.expandAllButton = new System.Windows.Forms.Button(); 54 this.collapseAllButton = new System.Windows.Forms.Button(); 55 this.searchTextBox = new System.Windows.Forms.TextBox(); 56 this.clearSearchButton = new System.Windows.Forms.Button(); 53 57 this.splitContainer = new System.Windows.Forms.SplitContainer(); 54 58 this.availableItemsGroupBox = new System.Windows.Forms.GroupBox(); 55 this.searchTextBox = new System.Windows.Forms.TextBox();56 this.clearSearchButton = new System.Windows.Forms.Button();57 59 this.typesTreeView = new System.Windows.Forms.TreeView(); 58 60 this.imageList = new System.Windows.Forms.ImageList(this.components); 59 this.descriptionGroupBox = new System.Windows.Forms.GroupBox(); 61 this.itemGroupBox = new System.Windows.Forms.GroupBox(); 62 this.itemDescriptionTextBox = new System.Windows.Forms.TextBox(); 63 this.pluginDescriptionGroupBox = new System.Windows.Forms.GroupBox(); 60 64 this.versionTextBox = new System.Windows.Forms.TextBox(); 61 65 this.pluginTextBox = new System.Windows.Forms.TextBox(); 62 this.descriptionTextBox = new System.Windows.Forms.TextBox(); 63 this.expandAllButton = new System.Windows.Forms.Button(); 64 this.collapseAllButton = new System.Windows.Forms.Button(); 66 this.pluginDescriptionTextBox = new System.Windows.Forms.TextBox(); 65 67 this.contextMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components); 66 68 this.expandToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); … … 68 70 this.collapseToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 69 71 this.collapseAllToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 72 this.descriptionSplitContainer = new System.Windows.Forms.SplitContainer(); 73 this.searchTextBox.SuspendLayout(); 70 74 ((System.ComponentModel.ISupportInitialize)(this.splitContainer)).BeginInit(); 71 75 this.splitContainer.Panel1.SuspendLayout(); … … 73 77 this.splitContainer.SuspendLayout(); 74 78 this.availableItemsGroupBox.SuspendLayout(); 75 this. searchTextBox.SuspendLayout();76 this. descriptionGroupBox.SuspendLayout();79 this.itemGroupBox.SuspendLayout(); 80 this.pluginDescriptionGroupBox.SuspendLayout(); 77 81 this.contextMenuStrip.SuspendLayout(); 82 ((System.ComponentModel.ISupportInitialize)(this.descriptionSplitContainer)).BeginInit(); 83 this.descriptionSplitContainer.Panel1.SuspendLayout(); 84 this.descriptionSplitContainer.Panel2.SuspendLayout(); 85 this.descriptionSplitContainer.SuspendLayout(); 78 86 this.SuspendLayout(); 79 87 // … … 83 91 this.okButton.DialogResult = System.Windows.Forms.DialogResult.OK; 84 92 this.okButton.Enabled = false; 85 this.okButton.Location = new System.Drawing.Point(456, 5 02);93 this.okButton.Location = new System.Drawing.Point(456, 587); 86 94 this.okButton.Name = "okButton"; 87 95 this.okButton.Size = new System.Drawing.Size(75, 23); … … 95 103 this.cancelButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); 96 104 this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel; 97 this.cancelButton.Location = new System.Drawing.Point(537, 5 02);105 this.cancelButton.Location = new System.Drawing.Point(537, 587); 98 106 this.cancelButton.Name = "cancelButton"; 99 107 this.cancelButton.Size = new System.Drawing.Size(75, 23); … … 111 119 this.toolTip.SetToolTip(this.searchLabel, "Enter string to search for items"); 112 120 // 113 // splitContainer 114 // 115 this.splitContainer.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 116 | System.Windows.Forms.AnchorStyles.Left) 117 | System.Windows.Forms.AnchorStyles.Right))); 118 this.splitContainer.FixedPanel = System.Windows.Forms.FixedPanel.Panel2; 119 this.splitContainer.Location = new System.Drawing.Point(12, 12); 120 this.splitContainer.Name = "splitContainer"; 121 this.splitContainer.Orientation = System.Windows.Forms.Orientation.Horizontal; 122 // 123 // splitContainer.Panel1 124 // 125 this.splitContainer.Panel1.Controls.Add(this.availableItemsGroupBox); 126 // 127 // splitContainer.Panel2 128 // 129 this.splitContainer.Panel2.Controls.Add(this.descriptionGroupBox); 130 this.splitContainer.Size = new System.Drawing.Size(600, 484); 131 this.splitContainer.SplitterDistance = 373; 132 this.splitContainer.TabIndex = 0; 133 this.splitContainer.TabStop = false; 134 // 135 // availableItemsGroupBox 136 // 137 this.availableItemsGroupBox.Controls.Add(this.searchLabel); 138 this.availableItemsGroupBox.Controls.Add(this.searchTextBox); 139 this.availableItemsGroupBox.Controls.Add(this.typesTreeView); 140 this.availableItemsGroupBox.Dock = System.Windows.Forms.DockStyle.Fill; 141 this.availableItemsGroupBox.Location = new System.Drawing.Point(0, 0); 142 this.availableItemsGroupBox.Name = "availableItemsGroupBox"; 143 this.availableItemsGroupBox.Padding = new System.Windows.Forms.Padding(3, 15, 3, 3); 144 this.availableItemsGroupBox.Size = new System.Drawing.Size(600, 373); 145 this.availableItemsGroupBox.TabIndex = 5; 146 this.availableItemsGroupBox.TabStop = false; 147 this.availableItemsGroupBox.Text = "Available Items"; 121 // expandAllButton 122 // 123 this.expandAllButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); 124 this.expandAllButton.Image = HeuristicLab.Common.Resources.VSImageLibrary.ZoomIn; 125 this.expandAllButton.Location = new System.Drawing.Point(12, 587); 126 this.expandAllButton.Name = "expandAllButton"; 127 this.expandAllButton.Size = new System.Drawing.Size(23, 23); 128 this.expandAllButton.TabIndex = 0; 129 this.expandAllButton.TabStop = false; 130 this.toolTip.SetToolTip(this.expandAllButton, "Expand all nodes."); 131 this.expandAllButton.UseVisualStyleBackColor = true; 132 this.expandAllButton.Click += new System.EventHandler(this.expandAllButton_Click); 133 // 134 // collapseAllButton 135 // 136 this.collapseAllButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); 137 this.collapseAllButton.Image = HeuristicLab.Common.Resources.VSImageLibrary.ZoomOut; 138 this.collapseAllButton.Location = new System.Drawing.Point(41, 587); 139 this.collapseAllButton.Name = "collapseAllButton"; 140 this.collapseAllButton.Size = new System.Drawing.Size(23, 23); 141 this.collapseAllButton.TabIndex = 0; 142 this.collapseAllButton.TabStop = false; 143 this.toolTip.SetToolTip(this.collapseAllButton, "Collapse all nodes."); 144 this.collapseAllButton.UseVisualStyleBackColor = true; 145 this.collapseAllButton.Click += new System.EventHandler(this.collapseAllButton_Click); 148 146 // 149 147 // searchTextBox … … 157 155 this.searchTextBox.Size = new System.Drawing.Size(562, 20); 158 156 this.searchTextBox.TabIndex = 1; 157 this.toolTip.SetToolTip(this.searchTextBox, "Filters the available Items.\r\nThe search term is tokenized by space and a name ha" + 158 "s to contain all tokens to be displayed.\r\n(E.g. \"Sym Reg\" matches \"Symbolic Regr" + 159 "ession\")"); 159 160 this.searchTextBox.TextChanged += new System.EventHandler(this.searchTextBox_TextChanged); 160 161 this.searchTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.searchTextBox_KeyDown); … … 178 179 this.clearSearchButton.Click += new System.EventHandler(this.clearSearchButton_Click); 179 180 // 181 // splitContainer 182 // 183 this.splitContainer.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 184 | System.Windows.Forms.AnchorStyles.Left) 185 | System.Windows.Forms.AnchorStyles.Right))); 186 this.splitContainer.FixedPanel = System.Windows.Forms.FixedPanel.Panel2; 187 this.splitContainer.Location = new System.Drawing.Point(12, 12); 188 this.splitContainer.Name = "splitContainer"; 189 this.splitContainer.Orientation = System.Windows.Forms.Orientation.Horizontal; 190 // 191 // splitContainer.Panel1 192 // 193 this.splitContainer.Panel1.Controls.Add(this.availableItemsGroupBox); 194 // 195 // splitContainer.Panel2 196 // 197 this.splitContainer.Panel2.Controls.Add(this.descriptionSplitContainer); 198 this.splitContainer.Size = new System.Drawing.Size(600, 569); 199 this.splitContainer.SplitterDistance = 373; 200 this.splitContainer.TabIndex = 0; 201 this.splitContainer.TabStop = false; 202 // 203 // availableItemsGroupBox 204 // 205 this.availableItemsGroupBox.Controls.Add(this.searchLabel); 206 this.availableItemsGroupBox.Controls.Add(this.searchTextBox); 207 this.availableItemsGroupBox.Controls.Add(this.typesTreeView); 208 this.availableItemsGroupBox.Dock = System.Windows.Forms.DockStyle.Fill; 209 this.availableItemsGroupBox.Location = new System.Drawing.Point(0, 0); 210 this.availableItemsGroupBox.Name = "availableItemsGroupBox"; 211 this.availableItemsGroupBox.Padding = new System.Windows.Forms.Padding(3, 15, 3, 3); 212 this.availableItemsGroupBox.Size = new System.Drawing.Size(600, 373); 213 this.availableItemsGroupBox.TabIndex = 5; 214 this.availableItemsGroupBox.TabStop = false; 215 this.availableItemsGroupBox.Text = "Available Items"; 216 // 180 217 // typesTreeView 181 218 // … … 203 240 this.imageList.TransparentColor = System.Drawing.Color.Transparent; 204 241 // 205 // descriptionGroupBox 206 // 207 this.descriptionGroupBox.Controls.Add(this.versionTextBox); 208 this.descriptionGroupBox.Controls.Add(this.pluginTextBox); 209 this.descriptionGroupBox.Controls.Add(this.descriptionTextBox); 210 this.descriptionGroupBox.Dock = System.Windows.Forms.DockStyle.Fill; 211 this.descriptionGroupBox.Location = new System.Drawing.Point(0, 0); 212 this.descriptionGroupBox.Name = "descriptionGroupBox"; 213 this.descriptionGroupBox.Size = new System.Drawing.Size(600, 107); 214 this.descriptionGroupBox.TabIndex = 1; 215 this.descriptionGroupBox.TabStop = false; 216 this.descriptionGroupBox.Text = "Description"; 242 // itemGroupBox 243 // 244 this.itemGroupBox.Controls.Add(this.itemDescriptionTextBox); 245 this.itemGroupBox.Dock = System.Windows.Forms.DockStyle.Fill; 246 this.itemGroupBox.Location = new System.Drawing.Point(0, 0); 247 this.itemGroupBox.Name = "itemGroupBox"; 248 this.itemGroupBox.Size = new System.Drawing.Size(600, 81); 249 this.itemGroupBox.TabIndex = 1; 250 this.itemGroupBox.TabStop = false; 251 this.itemGroupBox.Text = "Item"; 252 // 253 // itemDescriptionTextBox 254 // 255 this.itemDescriptionTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 256 | System.Windows.Forms.AnchorStyles.Left) 257 | System.Windows.Forms.AnchorStyles.Right))); 258 this.itemDescriptionTextBox.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 259 this.itemDescriptionTextBox.Location = new System.Drawing.Point(6, 19); 260 this.itemDescriptionTextBox.Multiline = true; 261 this.itemDescriptionTextBox.Name = "itemDescriptionTextBox"; 262 this.itemDescriptionTextBox.ReadOnly = true; 263 this.itemDescriptionTextBox.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; 264 this.itemDescriptionTextBox.Size = new System.Drawing.Size(588, 56); 265 this.itemDescriptionTextBox.TabIndex = 0; 266 this.itemDescriptionTextBox.TabStop = false; 267 // 268 // pluginDescriptionGroupBox 269 // 270 this.pluginDescriptionGroupBox.Controls.Add(this.versionTextBox); 271 this.pluginDescriptionGroupBox.Controls.Add(this.pluginTextBox); 272 this.pluginDescriptionGroupBox.Controls.Add(this.pluginDescriptionTextBox); 273 this.pluginDescriptionGroupBox.Dock = System.Windows.Forms.DockStyle.Fill; 274 this.pluginDescriptionGroupBox.Location = new System.Drawing.Point(0, 0); 275 this.pluginDescriptionGroupBox.Name = "pluginDescriptionGroupBox"; 276 this.pluginDescriptionGroupBox.Size = new System.Drawing.Size(600, 107); 277 this.pluginDescriptionGroupBox.TabIndex = 1; 278 this.pluginDescriptionGroupBox.TabStop = false; 279 this.pluginDescriptionGroupBox.Text = "Plugin"; 217 280 // 218 281 // versionTextBox … … 237 300 this.pluginTextBox.TabStop = false; 238 301 // 239 // descriptionTextBox240 // 241 this. descriptionTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)302 // pluginDescriptionTextBox 303 // 304 this.pluginDescriptionTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 242 305 | System.Windows.Forms.AnchorStyles.Left) 243 306 | System.Windows.Forms.AnchorStyles.Right))); 244 this.descriptionTextBox.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 245 this.descriptionTextBox.Location = new System.Drawing.Point(6, 46); 246 this.descriptionTextBox.Multiline = true; 247 this.descriptionTextBox.Name = "descriptionTextBox"; 248 this.descriptionTextBox.ReadOnly = true; 249 this.descriptionTextBox.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; 250 this.descriptionTextBox.Size = new System.Drawing.Size(588, 55); 251 this.descriptionTextBox.TabIndex = 0; 252 this.descriptionTextBox.TabStop = false; 253 // 254 // expandAllButton 255 // 256 this.expandAllButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); 257 this.expandAllButton.Image = HeuristicLab.Common.Resources.VSImageLibrary.ZoomIn; 258 this.expandAllButton.Location = new System.Drawing.Point(12, 502); 259 this.expandAllButton.Name = "expandAllButton"; 260 this.expandAllButton.Size = new System.Drawing.Size(23, 23); 261 this.expandAllButton.TabIndex = 0; 262 this.expandAllButton.TabStop = false; 263 this.expandAllButton.UseVisualStyleBackColor = true; 264 this.expandAllButton.Click += new System.EventHandler(this.expandAllButton_Click); 265 // 266 // collapseAllButton 267 // 268 this.collapseAllButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); 269 this.collapseAllButton.Image = HeuristicLab.Common.Resources.VSImageLibrary.ZoomOut; 270 this.collapseAllButton.Location = new System.Drawing.Point(41, 502); 271 this.collapseAllButton.Name = "collapseAllButton"; 272 this.collapseAllButton.Size = new System.Drawing.Size(23, 23); 273 this.collapseAllButton.TabIndex = 0; 274 this.collapseAllButton.TabStop = false; 275 this.collapseAllButton.UseVisualStyleBackColor = true; 276 this.collapseAllButton.Click += new System.EventHandler(this.collapseAllButton_Click); 307 this.pluginDescriptionTextBox.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 308 this.pluginDescriptionTextBox.Location = new System.Drawing.Point(6, 46); 309 this.pluginDescriptionTextBox.Multiline = true; 310 this.pluginDescriptionTextBox.Name = "pluginDescriptionTextBox"; 311 this.pluginDescriptionTextBox.ReadOnly = true; 312 this.pluginDescriptionTextBox.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; 313 this.pluginDescriptionTextBox.Size = new System.Drawing.Size(588, 55); 314 this.pluginDescriptionTextBox.TabIndex = 0; 315 this.pluginDescriptionTextBox.TabStop = false; 277 316 // 278 317 // contextMenuStrip … … 314 353 this.collapseAllToolStripMenuItem.Click += new System.EventHandler(this.collapseAllToolStripMenuItem_Click); 315 354 // 355 // descriptionSplitContainer 356 // 357 this.descriptionSplitContainer.Dock = System.Windows.Forms.DockStyle.Fill; 358 this.descriptionSplitContainer.Location = new System.Drawing.Point(0, 0); 359 this.descriptionSplitContainer.Name = "descriptionSplitContainer"; 360 this.descriptionSplitContainer.Orientation = System.Windows.Forms.Orientation.Horizontal; 361 // 362 // descriptionSplitContainer.Panel1 363 // 364 this.descriptionSplitContainer.Panel1.Controls.Add(this.itemGroupBox); 365 // 366 // descriptionSplitContainer.Panel2 367 // 368 this.descriptionSplitContainer.Panel2.Controls.Add(this.pluginDescriptionGroupBox); 369 this.descriptionSplitContainer.Size = new System.Drawing.Size(600, 192); 370 this.descriptionSplitContainer.SplitterDistance = 81; 371 this.descriptionSplitContainer.TabIndex = 1; 372 this.descriptionSplitContainer.TabStop = false; 373 // 316 374 // NewItemDialog 317 375 // … … 319 377 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; 320 378 this.CancelButton = this.cancelButton; 321 this.ClientSize = new System.Drawing.Size(624, 537);379 this.ClientSize = new System.Drawing.Size(624, 622); 322 380 this.Controls.Add(this.splitContainer); 323 381 this.Controls.Add(this.cancelButton); … … 335 393 this.Load += new System.EventHandler(this.NewItemDialog_Load); 336 394 this.Shown += new System.EventHandler(this.NewItemDialog_Shown); 395 this.searchTextBox.ResumeLayout(false); 337 396 this.splitContainer.Panel1.ResumeLayout(false); 338 397 this.splitContainer.Panel2.ResumeLayout(false); … … 341 400 this.availableItemsGroupBox.ResumeLayout(false); 342 401 this.availableItemsGroupBox.PerformLayout(); 343 this.searchTextBox.ResumeLayout(false); 344 this.descriptionGroupBox.ResumeLayout(false); 345 this.descriptionGroupBox.PerformLayout(); 402 this.itemGroupBox.ResumeLayout(false); 403 this.itemGroupBox.PerformLayout(); 404 this.pluginDescriptionGroupBox.ResumeLayout(false); 405 this.pluginDescriptionGroupBox.PerformLayout(); 346 406 this.contextMenuStrip.ResumeLayout(false); 407 this.descriptionSplitContainer.Panel1.ResumeLayout(false); 408 this.descriptionSplitContainer.Panel2.ResumeLayout(false); 409 ((System.ComponentModel.ISupportInitialize)(this.descriptionSplitContainer)).EndInit(); 410 this.descriptionSplitContainer.ResumeLayout(false); 347 411 this.ResumeLayout(false); 348 412 … … 355 419 private System.Windows.Forms.ToolTip toolTip; 356 420 private System.Windows.Forms.SplitContainer splitContainer; 357 private System.Windows.Forms.TextBox descriptionTextBox;421 private System.Windows.Forms.TextBox pluginDescriptionTextBox; 358 422 private System.Windows.Forms.Label searchLabel; 359 423 private System.Windows.Forms.TextBox searchTextBox; … … 363 427 private System.Windows.Forms.Button collapseAllButton; 364 428 private System.Windows.Forms.GroupBox availableItemsGroupBox; 365 private System.Windows.Forms.GroupBox descriptionGroupBox;429 private System.Windows.Forms.GroupBox pluginDescriptionGroupBox; 366 430 private System.Windows.Forms.TextBox versionTextBox; 367 431 private System.Windows.Forms.TextBox pluginTextBox; … … 372 436 private System.Windows.Forms.ToolStripMenuItem collapseAllToolStripMenuItem; 373 437 private System.Windows.Forms.Button clearSearchButton; 438 private System.Windows.Forms.GroupBox itemGroupBox; 439 private System.Windows.Forms.TextBox itemDescriptionTextBox; 440 private System.Windows.Forms.SplitContainer descriptionSplitContainer; 374 441 } 375 442 } -
branches/NewItemDialog/HeuristicLab.Optimizer/3.3/NewItemDialog.cs
r12238 r12239 162 162 searchTextBox.Text = string.Empty; 163 163 searchTextBox.Focus(); 164 SelectedType = null; 165 typesTreeView.SelectedNode = null; 166 typesTreeView.CollapseAll(); 167 UpdateDescription(); 164 168 } 165 169 … … 172 176 if (!searchString.Contains(currentSearchString)) { 173 177 typesTreeView.BeginUpdate(); 174 // expand s aerch -> restore all tree nodes178 // expand search -> restore all tree nodes 175 179 var selectedNode = typesTreeView.SelectedNode; 176 180 typesTreeView.Nodes.Clear(); … … 197 201 198 202 // select first item 199 if (SelectedType == null) { 200 var firstNode = FirstVisibleNode; 201 while (firstNode != null && !(firstNode.Tag is Type)) 202 firstNode = firstNode.NextVisibleNode; 203 if (firstNode != null) 204 typesTreeView.SelectedNode = firstNode; 205 } 203 var firstNode = FirstVisibleNode; 204 while (firstNode != null && !(firstNode.Tag is Type)) 205 firstNode = firstNode.NextVisibleNode; 206 if (firstNode != null) 207 typesTreeView.SelectedNode = firstNode; 206 208 207 209 if (typesTreeView.Nodes.Count == 0) { … … 243 245 244 246 protected virtual void UpdateDescription() { 245 descriptionTextBox.Text = string.Empty; 247 itemDescriptionTextBox.Text = string.Empty; 248 pluginDescriptionTextBox.Text = string.Empty; 249 pluginTextBox.Text = string.Empty; 250 versionTextBox.Text = string.Empty; 246 251 247 252 if (typesTreeView.SelectedNode != null) { 248 253 string category = typesTreeView.SelectedNode.Tag as string; 249 254 if (category != null) { 250 descriptionTextBox.Text = category; 251 pluginTextBox.Text = string.Empty; 252 versionTextBox.Text = string.Empty; 255 itemDescriptionTextBox.Text = category; 253 256 } 254 257 Type type = typesTreeView.SelectedNode.Tag as Type; … … 258 261 var plugin = ApplicationManager.Manager.GetDeclaringPlugin(type); 259 262 if (description != null) 260 descriptionTextBox.Text = description;261 if (plugin != null) 263 itemDescriptionTextBox.Text = description; 264 if (plugin != null) { 262 265 pluginTextBox.Text = plugin.Name; 266 pluginDescriptionTextBox.Text = plugin.Description; 267 } 263 268 if (version != null) 264 269 versionTextBox.Text = version.ToString(); 265 270 } 266 271 } else if (typesTreeView.Nodes.Count == 0) { 267 descriptionTextBox.Text = "No types found"; 268 pluginTextBox.Text = string.Empty; 269 versionTextBox.Text = string.Empty; 272 itemDescriptionTextBox.Text = "No types found"; 270 273 } 271 274 }
Note: See TracChangeset
for help on using the changeset viewer.