private void Target_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
        {
            MultiClassificationLayerVM vm = sender as MultiClassificationLayerVM;

            switch (e.PropertyName)
            {
            case nameof(vm.CurrentClasses):
                RaisePropertyChanged(nameof(Icons));
                break;
            }
        }
        public override LayerVM DeepClone()
        {
            MultiClassificationLayerVM result = new MultiClassificationLayerVM(PropertyName);

            result.PossibleClasses = PossibleClasses.ToArray();
            result.Remark          = Remark;
            if (CurrentClasses == null)
            {
                result.CurrentClasses = new List <LayerClassVM>();
            }
            else
            {
                result.CurrentClasses = new List <LayerClassVM>(CurrentClasses);
            }
            return(result);
        }
 public MultiClassificationLayerIconPresentingVM(MultiClassificationLayerVM target) : base(target)
 {
     this.target             = target;
     target.PropertyChanged += Target_PropertyChanged;
 }
 public MultiClassificationLayerTextPresentingVM(MultiClassificationLayerVM target) : base(target)
 {
     specificTarget          = target;
     target.PropertyChanged += Target_PropertyChanged;
 }