Ejemplo n.º 1
0
 internal void OnItemsSourceChanged(NotifyCollectionChangedEventArgs args)
 {
     m_cachedSize = GetSizeCore();
     CollectionChanged?.Invoke(this, args);
 }
Ejemplo n.º 2
0
 private void NotifyCollectionItemChanged(NotifyCollectionChangedEventArgs e)
 {
     PropertyChanged?.Invoke(this, KnownEventArgs.IndexerPropertyChanged);
     CollectionChanged?.Invoke(this, e);
 }
 public void Add(BindableObject item)
 {
     _items.Add(item);
     CollectionChanged?.Invoke(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, item, Count - 1));
 }
Ejemplo n.º 4
0
 protected void OnItemsSourceChanged(NotifyCollectionChangedEventArgs args)
 {
     CollectionChanged?.Invoke(this, args);
 }
 public void RemoveAndNotify(IDrawable element)
 {
     Remove(element);
     CollectionChanged?.Invoke(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, element));
 }
 public CodeSwitchOptionCollection(CollectionChanged changed, CodeSwitchOption[] value)
 {
     AddRange(value);
     _changed = changed;
 }
Ejemplo n.º 7
0
 public PaneCollection()
 {
     observableCollection.CollectionChanged += (sender, e) => CollectionChanged?.Invoke(this, e);
 }
Ejemplo n.º 8
0
 void CallCollectionChanged2(NotifyDocumentCollectionChangedEventArgs eventArgs) =>
 CollectionChanged?.Invoke(this, eventArgs);
Ejemplo n.º 9
0
 private void RaiseCollectionReset()
 {
     System.Windows.Application.Current.Dispatcher.BeginInvoke(new Action(() => CollectionChanged?.Invoke(this, _resetEvent)));
 }
 public Task Enqueue(Func <Task> func)
 {
     _queue.Enqueue(func);
     return(CollectionChanged?.Invoke() ?? Task.CompletedTask);
 }
Ejemplo n.º 11
0
 public void Reset()
 {
     CollectionChanged?.Invoke(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
 }
 /// <summary>
 /// Notify collection has changed.
 /// </summary>
 protected void RaiseCollectionChange(object s, NotifyCollectionChangedEventArgs e)
 {
     CollectionChanged?.Invoke(s, e);
 }
Ejemplo n.º 13
0
 public void ProcCollectionChanged()
 {
     indexes.Clear();
     CollectionChanged?.Invoke(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
 }
Ejemplo n.º 14
0
 protected virtual void NotifyCollectionChanged(NotifyCollectionChangedEventArgs e)
 {
     CollectionChanged?.Invoke(this, e);
 }
 public CodeNotificationExpressionCollection(CollectionChanged changed)
 {
     _changed = changed;
 }
 protected virtual void OnCollectionChanged(NotifyCollectionChangedEventArgs args)
 {
     CollectionChanged?.Invoke(this, args);
 }
 public CodeNotificationStatementCollection(CollectionChanged changed)
 {
     _changed = changed;
 }
Ejemplo n.º 18
0
 public void RaiseCollectionChangedEvent()
 {
     CollectionChanged.SafeInvoke(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
 }
Ejemplo n.º 19
0
 protected void OnCollectionChanged(NotifyCollectionChangedEventArgs changes)
 {
     CollectionChanged?.Invoke(this, changes);
 }
 protected virtual void OnCollectionChanged(string propertyName)
 {
     CollectionChanged?.Invoke(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add));
 }
Ejemplo n.º 21
0
 private void OnCollectionChanged(NotifyCollectionChangedEventArgs e)
 {
     CollectionChanged?.Invoke(this, e);
 }
Ejemplo n.º 22
0
 private void OnListChanged(NotifyCollectionChangedAction action)
 {
     // TODO Allow different types
     CollectionChanged?.Invoke(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
 }
 public void ResetAndNotify()
 {
     Clear();
     Box = null;
     CollectionChanged?.Invoke(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
 }
Ejemplo n.º 24
0
 public void AddElement(T element)
 {
     Add(element);
     CollectionChanged?.Invoke(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
 }
 protected virtual void OnCollectionChanged(NotifyCollectionChangedAction action)
 {
     CollectionChanged?.Invoke(this, new NotifyCollectionChangedEventArgs(action));
 }
Ejemplo n.º 26
0
 public override void Add(T item)
 {
     base.Add(item);
     CollectionChanged?.Invoke(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, item));
 }
 public void Insert(int index, BindableObject item)
 {
     _items.Insert(index, item);
     CollectionChanged?.Invoke(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, item, index));
 }
Ejemplo n.º 28
0
 public virtual void OnCollectionChanged(NotifyCollectionChangedEventArgs e)
 {
     CollectionChanged?.Invoke(this, e);
 }
 public void Clear()
 {
     _items.Clear();
     CollectionChanged?.Invoke(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
 }
Ejemplo n.º 30
0
 void ObsItemsSource_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
 {
     CollectionChanged?.Invoke(sender, e);
 }
Ejemplo n.º 31
0
 private void DoCollectionChanged(NotifyCollectionChangedAction action)
 {
     CollectionChanged?.Invoke(this, new NotifyCollectionChangedEventArgs(action));
 }
 private void OnCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
 {
     CollectionChanged.Raise(this, e);
 }
 public CodeNotificationExpressionCollection(CollectionChanged changed, CodeExpression[] value)
 {
     AddRange(value);
     _changed = changed;
 }
 private void _internalList_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e) =>
 CollectionChanged?.Invoke(sender, e);
 public CodeNotificationStatementCollection(CollectionChanged changed, CodeStatement[] value)
 {
     AddRange(value);
     _changed = changed;
 }
 public CodeSwitchOptionCollection(CollectionChanged changed)
 {
     _changed = changed;
 }