Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/10/20 16:46:09 (4 years ago)
Author:
dpiringe
Message:

#3026:

  • renamed JsonItemArrayValueControl to JsonItemMultiValueControl
  • extracted converter logic from property Value in JsonItem<V,R> into new private method ConvertObject
  • added references to TreeNode and TreeView in JsonItemVMBase -> for additional user feedback when enabling/disabling an item (changes the fore color of referenced node)
  • changed implementation and interplay between ArrayValueVM and JsonItemMultiValueControl -> removed the direct access of property DataSource of DataGridView -> now: dynamically adds new columns/rows and accesses grid cells manually (better handling with matrices)
  • added new VM MatrixValueVM
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/ViewModels/JsonItemVMBase.cs

    r17420 r17431  
    22using System.Collections.Generic;
    33using System.ComponentModel;
     4using System.Drawing;
    45using System.Linq;
    56using System.Text;
    67using System.Threading.Tasks;
     8using System.Windows.Forms;
    79
    810namespace HeuristicLab.JsonInterface.OptimizerIntegration {
     
    1921      }
    2022    }
     23
     24    public TreeNode TreeNode { get; set; }
     25    public TreeView TreeView { get; set; }
    2126
    2227    protected void OnPropertyChange(object sender, string propertyName) {
     
    3742      set {
    3843        selected = value;
     44        if(TreeNode != null)
     45          TreeNode.ForeColor = (selected ? Color.Black : Color.Red);
     46        if (TreeView != null)
     47          TreeView.Refresh();
    3948        OnPropertyChange(this, nameof(Selected));
    4049      }
Note: See TracChangeset for help on using the changeset viewer.