public void AddDeleteListener(String whereClause, ObjectDeleted <T> listener) { DataSubscription subscription = new DataSubscription(RTDataEvents.deleted, tableName, CreateCallback(listener)) .WithWhere(whereClause); AddEventListener(subscription); }
public void DeleteObject(LevelObject levelObject) { SelectObject(null); ObjectDeleted?.Invoke(this, new RatchetEventArgs { Object = levelObject }); InvalidateView(); }
internal void DoObjectDeleted(TabularObject obj, ITabularNamedObject parentBeforeDeletion) { if (obj is IFolderObject) { Tree.RebuildFolderCacheForTable(parentBeforeDeletion as Table); } var e = new ObjectDeletedEventArgs(obj); ObjectDeleted?.Invoke(this, e); }
public override void OnDelete(ContainerListDragButton button) { PropertyFlowList flow = button.Tag as PropertyFlowList; object toDelete = flow.SelectedObject; mObjectList.Remove(toDelete); base.OnDelete(button); //ObjectDeleted if (ObjectDeleted != null) { ObjectDeleted.Invoke(flow, toDelete); } }
public static void ChangeMade(int id, Operation operation) { switch (operation) { case Operation.ADD: ObjectAdded?.Invoke(id); break; case Operation.REMOVE: ObjectDeleted?.Invoke(id); break; case Operation.VALUE_CHANGE: ValueChanged?.Invoke(id); break; default: break; } }
private static void OnObjectBeingDeleted(ObjectCtrlInfo objectCtrlInfo) { foreach (var behaviour in _registeredHandlers) { try { behaviour.Key.OnObjectDeleted(objectCtrlInfo); } catch (Exception e) { KoikatuAPI.Logger.LogError(e); } } try { ObjectDeleted?.Invoke(KoikatuAPI.Instance, new ObjectDeletedEventArgs(objectCtrlInfo)); } catch (Exception e) { KoikatuAPI.Logger.LogError(e); } }
public void Fire_ObjectDeleted(StorageContext context, T obj) { ObjectDeleted?.Invoke(context, new ObjectEventArgs <T>(obj)); }
protected void InvokeObjectDeleted(uint objId) => ObjectDeleted?.Invoke(objId);
public void RemoveDeleteListener(ObjectDeleted <T> listener) { RemoveListeners(RTDataEvents.deleted, listener); }
public void RemoveDeleteListener(String whereClause, ObjectDeleted <T> listener) { RemoveListeners(RTDataEvents.deleted, whereClause, listener); }
public void AddDeleteListener(ObjectDeleted <T> listener) { DataSubscription subscription = new DataSubscription(RTDataEvents.deleted, tableName, CreateCallback(listener)); AddEventListener(subscription); }
internal void DoObjectDeleted(TabularObject obj) { var e = new ObjectDeletedEventArgs(obj); ObjectDeleted?.Invoke(this, e); }
void OnDelete() { Repository.Delete(DomainObject); ObjectDeleted?.Invoke(this, new EventArgs()); }