Changeset 18050 for branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration
- Timestamp:
- 09/08/21 15:53:37 (3 years ago)
- Location:
- branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/ExportJsonDialog.Designer.cs
r18047 r18050 177 177 // postProcessorListView 178 178 this.postProcessorListControl = new ResultCollectionPostProcessorControl(); 179 this.postProcessorListControl.Content = new CheckedItemList<IResultCollectionPostProcessor>(); 180 this.postProcessorListControl.Content.Add(new SymRegPythonPostProcessor()); 179 this.postProcessorListControl.Content = new CheckedItemList<IResultCollectionProcessor>(); 181 180 this.postProcessorListControl.Location = new System.Drawing.Point(0, 6); 182 181 this.postProcessorListControl.Dock = System.Windows.Forms.DockStyle.Fill; -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/ExportJsonDialog.cs
r18047 r18050 22 22 private IOptimizer Optimizer { get; set; } 23 23 private IList<IJsonItemVM> VMs { get; set; } 24 private ICheckedItemList<IResultCollectionP ostProcessor> PostProcessors { get; set; }24 private ICheckedItemList<IResultCollectionProcessor> PostProcessors { get; set; } 25 25 #endregion 26 26 -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/ResultCollectionPostProcessorControl.cs
r18047 r18050 11 11 12 12 namespace HeuristicLab.JsonInterface.OptimizerIntegration { 13 public partial class ResultCollectionPostProcessorControl : Core.Views.CheckedItemListView<IResultCollectionP ostProcessor> {13 public partial class ResultCollectionPostProcessorControl : Core.Views.CheckedItemListView<IResultCollectionProcessor> { 14 14 public ResultCollectionPostProcessorControl() { 15 15 InitializeComponent(); 16 16 } 17 17 18 #region Content Events 19 protected override void OnContentChanged() { 20 base.OnContentChanged(); 21 if (Content != null) { 22 SetNumberOfCheckItems(); 23 } 24 } 18 protected override string GroupBoxText => "Result Collection Processors"; 25 19 26 protected override void Content_CheckedItemsChanged(object sender, CollectionItemsChangedEventArgs<IndexedItem<IResultCollectionPostProcessor>> e) {27 base.Content_CheckedItemsChanged(sender, e);28 if (InvokeRequired)29 Invoke(new CollectionItemsChangedEventHandler<IndexedItem<IResultCollectionPostProcessor>>(Content_CheckedItemsChanged), sender, e);30 else {31 SetNumberOfCheckItems();32 }33 }34 protected override void Content_CollectionReset(object sender, CollectionItemsChangedEventArgs<IndexedItem<IResultCollectionPostProcessor>> e) {35 base.Content_CollectionReset(sender, e);36 SetNumberOfCheckItems();37 }38 protected override void Content_ItemsAdded(object sender, CollectionItemsChangedEventArgs<IndexedItem<IResultCollectionPostProcessor>> e) {39 base.Content_ItemsAdded(sender, e);40 SetNumberOfCheckItems();41 }42 protected override void Content_ItemsMoved(object sender, CollectionItemsChangedEventArgs<IndexedItem<IResultCollectionPostProcessor>> e) {43 base.Content_ItemsMoved(sender, e);44 SetNumberOfCheckItems();45 }46 protected override void Content_ItemsRemoved(object sender, CollectionItemsChangedEventArgs<IndexedItem<IResultCollectionPostProcessor>> e) {47 base.Content_ItemsRemoved(sender, e);48 SetNumberOfCheckItems();49 }50 protected override void Content_ItemsReplaced(object sender, CollectionItemsChangedEventArgs<IndexedItem<IResultCollectionPostProcessor>> e) {51 base.Content_ItemsReplaced(sender, e);52 SetNumberOfCheckItems();53 }54 #endregion55 56 private void SetNumberOfCheckItems() { // TODO: eigene override für "Post Processors" -> Item Naming57 if (InvokeRequired) {58 Invoke((Action)SetNumberOfCheckItems);59 } else {60 this.itemsGroupBox.Text = String.Format("Post Processors (Checked: {0}/{1})", Content.CheckedItems.Count(), Content.Count);61 }62 }63 20 } 64 21 }
Note: See TracChangeset
for help on using the changeset viewer.