Exemple #1
0
        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();
 }
Exemple #3
0
        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);
        }
Exemple #4
0
        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);
            }
        }
Exemple #5
0
        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;
            }
        }
Exemple #6
0
        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));
 }
Exemple #8
0
 protected void InvokeObjectDeleted(uint objId) => ObjectDeleted?.Invoke(objId);
Exemple #9
0
 public void RemoveDeleteListener(ObjectDeleted <T> listener)
 {
     RemoveListeners(RTDataEvents.deleted, listener);
 }
Exemple #10
0
 public void RemoveDeleteListener(String whereClause, ObjectDeleted <T> listener)
 {
     RemoveListeners(RTDataEvents.deleted, whereClause, listener);
 }
Exemple #11
0
        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);
        }
Exemple #13
0
 void OnDelete()
 {
     Repository.Delete(DomainObject);
     ObjectDeleted?.Invoke(this, new EventArgs());
 }