- Timestamp:
- 12/11/12 16:36:26 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Core.Views/3.3/CheckedItemCollectionView.cs
r7259 r9026 20 20 #endregion 21 21 22 using System; 22 23 using System.Drawing; 24 using System.Linq; 23 25 using System.Windows.Forms; 24 26 using HeuristicLab.Collections; … … 38 40 : base() { 39 41 InitializeComponent(); 42 } 43 44 protected override void OnContentChanged() { 45 base.OnContentChanged(); 46 if (Content != null) { 47 SetNumberOfCheckItems(); 48 } 40 49 } 41 50 … … 98 107 } 99 108 } 109 SetNumberOfCheckItems(); 100 110 } 101 111 } 102 112 #endregion 113 114 private void SetNumberOfCheckItems() { 115 this.itemsGroupBox.Text = String.Format("Items (Checked: {0}/{1})", Content.CheckedItems.Count(), Content.Count); 116 } 103 117 } 104 118 }
Note: See TracChangeset
for help on using the changeset viewer.