public static IActiveList <int> ActiveRange(IActiveValue <int> start, int count) => ActiveRange(start, new ActiveValueWrapper <int>(count));
Beispiel #2
0
 public ActiveMaxOrDefault(IActiveList <TSource> source, IActiveValue <TParameter> parameter, Func <TSource, TParameter, TValue> selector, IEnumerable <string> sourcePropertiesToWatch, IEnumerable <string> parameterPropertiesToWatch)
     : this(source, parameter, i => selector.Invoke(i, parameter.Value), sourcePropertiesToWatch, parameterPropertiesToWatch)
 {
 }
 public static IActiveList <int> ActiveRange(int start, IActiveValue <int> count) => ActiveRange(new ActiveValueWrapper <int>(start), count);
Beispiel #4
0
 public override void Replace(int index, IActiveValue <T> newValue)
 {
     base.Replace(index, newValue);
     List[index].Index = index;
 }
Beispiel #5
0
 private void ValueChangedHandler(IActiveValue <T> activeValue, IActiveValueChangedEventArgs <T> eventArgs) => ValueChanged?.Invoke(eventArgs.OldValue, eventArgs.NewValue, Index);
Beispiel #6
0
 public ValueStore(IActiveValue <T> value)
 {
     _value = value;
     _value.ValueChanged += ValueChangedHandler;
 }
		public ActiveCount(IActiveList<TSource> source, IActiveValue<TParameter> parameter, Func<TSource, TParameter, bool> predicate, IEnumerable<string> sourcePropertiesToWatch, IEnumerable<string> parameterPropertiesToWatch)
			: this(source, parameter, i => predicate.Invoke(i, parameter.Value), sourcePropertiesToWatch, parameterPropertiesToWatch)
		{
		}
Beispiel #8
0
 private ActiveAny(IActiveList <TSource> source, IActiveValue <TParameter> parameter, Func <TSource, bool> predicate, IEnumerable <string> sourcePropertiesToWatch, IEnumerable <string> parameterPropertiesToWatch)
     : base(source, parameter, predicate, sourcePropertiesToWatch, parameterPropertiesToWatch)
 {
     Initialize();
 }