Beispiel #1
0
 private void OnAddHandler(IBsActor actor)
 {
     Add(actor);
     OnAdd.Dispatch(Data[Data.Count - 1]);
 }
Beispiel #2
0
 public new void Add(T item)
 {
     base.Add(item);
     OnAdd?.Invoke(item);
     ItemsChanged?.Invoke();
 }
Beispiel #3
0
        public void Add(Layout layout)
        {
            this._entries.Add(layout.Handle, layout);

            OnAdd?.Invoke(this, new ReferenceChangedEventArgs(layout));
        }
Beispiel #4
0
 public new void Add(int id, UniversityStudent student)
 {
     base.Add(id, student);
     OnAdd?.Invoke(id, student);
 }
Beispiel #5
0
        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);
 }
Beispiel #8
0
 private void BtnAddBirds_Click(object sender, EventArgs e)
 {
     OnAdd.Invoke(this, new OnAddEventArgs(birdId, birdName, count, txtNumber.Text));
     this.Dismiss();
 }
Beispiel #9
0
 public void AddProject(Project project)
 {
     seznam.Add(project);
     OnAdd?.Invoke(this, EventArgs.Empty);
 }
Beispiel #10
0
 private void TriggerOnAdd(string key, string region, CacheActionEventArgOrigin origin = CacheActionEventArgOrigin.Local)
 {
     OnAdd?.Invoke(this, new CacheActionEventArgs(key, region, origin));
 }
Beispiel #11
0
        public override void Add(ContactPoint point)
        {
            base.Add(point);

            OnAdd?.Invoke((BaseMissionObjectController)point.Shape1.GetBody().GetUserData(), (BaseMissionObjectController)point.Shape2.GetBody().GetUserData());
        }
Beispiel #12
0
 public void Add(Card item)
 {
     _cards.Add(item);
     OnAdd?.Invoke(item);
     OnChange?.Invoke();
 }
Beispiel #13
0
 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);
 }
Beispiel #15
0
 public new void Add(T Item)
 {
     OnAdd?.Invoke(Item, null);
     base.Add(Item);
 }
Beispiel #16
0
 /// <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);
 }
Beispiel #18
0
 public void NotifyAdd(Event eventArgs)
 {
     OnAdd?.Invoke(this, eventArgs);
 }
Beispiel #19
0
 new void Add(T o)
 {
     OnAdd?.Invoke(this, new ModelListEventArges(o));
     base.Add(o);
 }
Beispiel #20
0
 public void Add(T item)
 {
     base.Add(item);
     OnAdd?.Invoke(this, null);
 }
Beispiel #21
0
 private void OnAddEmitted() => OnAdd?.Invoke(this, EventArgs.Empty);