public T234ViewModel(T234 _node) : base(_node) { ShowOneT234 = new RelayCommand(ChangeTo2Node); ShowTwoT234 = new RelayCommand(ChangeTo3Node); ShowThreeT234 = new RelayCommand(ChangeTo4Node); ShowCorrectNode(); _ColorOfText = Brushes.Black; }
public T234 Merge(T234 other, T234 optional = null) { if (IsTwoNode && other.IsTwoNode) { TextTwo = other.TextOne; IsTwoNode = false; IsThreeNode = true; }else if (IsTwoNode && other.IsThreeNode) { TextTwo = other.TextOne; TextThree = other.TextTwo; IsTwoNode = false; IsFourNode = true; } if (optional != null && optional.IsTwoNode && IsThreeNode) { TextThree = optional.TextOne; IsThreeNode = false; IsFourNode = true; } return this; }