Free cookie consent management tool by TermsFeed Policy Generator

source: branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/ViewModels/LookupJsonItemVM.cs @ 17471

Last change on this file since 17471 was 17471, checked in by dpiringe, 4 years ago

#3026:

  • deleted INamedMatrixJsonItem and all corresponding classes/views, because of bad design
  • added ILookupJsonItem and IValueLookupJsonItem (incl. all corresponding implementations, VMs, Views)
  • added IResultJsonItem
  • changed type of property Control from JsonItemBaseControl to UserControl in IJsonItemVM (because the details control now builds up with linked user controls -> allows better construction of dynamic controls)
  • added all properties of INamedMatrixJsonItem in IMatrixJsonItem
  • refactored a lot of views for better usage (TableLayoutPanel is used a lot now -> for better item positioning)
  • property ActualName is now located in ILookupJsonItem instead of IJsonItem
File size: 659 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Threading.Tasks;
6using System.Windows.Forms;
7
8namespace HeuristicLab.JsonInterface.OptimizerIntegration {
9  public class LookupJsonItemVM : JsonItemVMBase, ILookupJsonItemVM {
10    public override Type JsonItemType => typeof(LookupJsonItem);
11
12    public override UserControl Control => new LookupJsonItemControl(this);
13
14    public string ActualName {
15      get => ((ILookupJsonItem)Item).ActualName;
16      set {
17        ((ILookupJsonItem)Item).ActualName = value;
18        OnPropertyChange(this, nameof(ActualName));
19      }
20    }
21  }
22}
Note: See TracBrowser for help on using the repository browser.