private void view_RemovingItem(object sender, RemoveEventArgs<UMLFactor> e) { UMLFactor factor = (UMLFactor)e.Item; if (factor.Editable) { _factors.Remove(factor); uMLFactorCollectionBindingSource.ResetBindings(false); e.Cancel = true; } else { MessageBox.Show("This factor can't be deleted"); e.Cancel = true; } }
private void view_RemovingItem(object sender, RemoveEventArgs <UMLFactor> e) { UMLFactor factor = (UMLFactor)e.Item; if (factor.Editable) { _factors.Remove(factor); uMLFactorCollectionBindingSource.ResetBindings(false); e.Cancel = true; } else { MessageBox.Show("This factor can't be deleted"); e.Cancel = true; } }
public async Task ApplyRemove(IResourceContext rc, RemoveEventArgs ev) { await Task.Run(() => Called ++); }
public void ApplyRemove(IResourceContext rc, RemoveEventArgs ev) { Called++; }
void TableElementList_AfterRemove(object sender, RemoveEventArgs <TableElement> e) { e.Item.ValueChanged -= new EventHandler <TableElementValueChangedEventArgs>(Item_ValueChanged); }
private void StrokesService_RemoveStrokeEvent(object sender, RemoveEventArgs e) => RemoveStroke(e.RemovedStroke);
void OutputList_AfterRemove(object sender, RemoveEventArgs <IOutput> e) { e.Item.ValueChanged -= new Output.ValueChangedEventHandler(Item_ValueChanged); }
protected virtual void OnRemoveEntity(RemoveEventArgs e) { RemoveEvent?.Invoke(this, e); }