private void OnAddHandler(IBsActor actor) { Add(actor); OnAdd.Dispatch(Data[Data.Count - 1]); }
public new void Add(T item) { base.Add(item); OnAdd?.Invoke(item); ItemsChanged?.Invoke(); }
public void Add(Layout layout) { this._entries.Add(layout.Handle, layout); OnAdd?.Invoke(this, new ReferenceChangedEventArgs(layout)); }
public new void Add(int id, UniversityStudent student) { base.Add(id, student); OnAdd?.Invoke(id, student); }
public new void Add(T item) { OnAdd?.Invoke(this, null); base.Add(item); }
private async Task AddValue() { await OnAdd.InvokeAsync(_currentValue); _currentValue = string.Empty; }
public void Add(Entity entity, T value) { Set.Add(entity.Id); instances[Set.Index(entity.Id)] = value; OnAdd?.Invoke(entity.Id); }
private void BtnAddBirds_Click(object sender, EventArgs e) { OnAdd.Invoke(this, new OnAddEventArgs(birdId, birdName, count, txtNumber.Text)); this.Dismiss(); }
public void AddProject(Project project) { seznam.Add(project); OnAdd?.Invoke(this, EventArgs.Empty); }
private void TriggerOnAdd(string key, string region, CacheActionEventArgOrigin origin = CacheActionEventArgOrigin.Local) { OnAdd?.Invoke(this, new CacheActionEventArgs(key, region, origin)); }
public override void Add(ContactPoint point) { base.Add(point); OnAdd?.Invoke((BaseMissionObjectController)point.Shape1.GetBody().GetUserData(), (BaseMissionObjectController)point.Shape2.GetBody().GetUserData()); }
public void Add(Card item) { _cards.Add(item); OnAdd?.Invoke(item); OnChange?.Invoke(); }
public void Add(GenericListViewItem <T> item) { _items.Add(item ?? throw new ArgumentNullException(nameof(item))); OnAdd?.Invoke(ref item); ItemsChanged?.Invoke(); }
public void InvokeOnAdd(object item, object index) { OnAdd?.Invoke((T)item, (int)index); }
public new void Add(T Item) { OnAdd?.Invoke(Item, null); base.Add(Item); }
/// <summary> /// Trigger <see cref="OnAdd" /> with a specific <paramref name="item" /> at an <paramref name="index" /> /// </summary> /// <param name="item">The item to add, will be cast to <typeparamref name="T" /> </param> /// <param name="index">The index of the item, will be cast to <see cref="string" /></param> public void InvokeOnAdd(object item, object index) { OnAdd?.Invoke((string)index, (T)item); }
public void Add(ToastContentItem toastContent) { OnAdd?.Invoke(toastContent); }
public void NotifyAdd(Event eventArgs) { OnAdd?.Invoke(this, eventArgs); }
new void Add(T o) { OnAdd?.Invoke(this, new ModelListEventArges(o)); base.Add(o); }
public void Add(T item) { base.Add(item); OnAdd?.Invoke(this, null); }
private void OnAddEmitted() => OnAdd?.Invoke(this, EventArgs.Empty);