public void AddRootAction(RangeObservableCollection<ItemData> itemsSource) { if (itemsSource == null || !itemsSource.Any()) { var newItem = AddNew("", 0, 0, itemsSource); itemsSource.Add(newItem); } }
private void ItemChanged(object sender, PropertyChangedEventArgs e) { HasChange = _cards.Any(c => c.ChangedCount != 0); }
private IObservable <bool> CanRemoveObservable() { return(_right.ObserveCollectionChanged() .SelectMany(ObserveColumnProperties(_right)) .Select(x => _right.Any(y => y.IsSelected))); }
private IObservable <bool> CanAddObservable() { return(_left.ObserveCollectionChanged() .SelectMany(x => ObserveColumnProperties(_left)) .Select(x => _left.Any(y => y.IsSelected))); }