private void HandleResourceModified(object sender, ResourceEventArgs <T> e) { var ev = ResourceModified; if (ev != null) { ev(this, new ResourceEventArgs <TBase>(e.Resource)); } }
private void HandleCollectionModified(object sender, ResourceEventArgs <T> e) { var ev = ResourceModified; if (ev != null) { ev(this, e); } }
protected virtual void OnResourceModified(ResourceEventArgs <T> e) { var ev = ResourceModified; if (ev != null) { ev(this, e); } OnModified(EventArgs.Empty); }
private void ObjectClassRemoved(object sender, ResourceEventArgs<ObjectClass> e) { RefreshObjectPoolCollection(); InvalidateObjectProtoCommands(); OnSyncObjectPoolManager(EventArgs.Empty); }
private void ObjectClassModified(object sender, ResourceEventArgs<ObjectClass> e) { RefreshObjectPoolCollection(); OnSyncObjectPoolManager(EventArgs.Empty); }
private void TilePoolRemoved(object sender, ResourceEventArgs<TilePool> e) { RemovePoolPresenter(e.Resource.Uid); if (_selectedPool == e.Uid) SelectTilePool(); OnSyncTilePoolList(EventArgs.Empty); OnSyncTilePoolControl(EventArgs.Empty); }
private void LevelModifiedHandler(object sender, ResourceEventArgs<Level> e) { }
/*private void TilePoolManagerChanged (object sender, NotifyCollectionChangedEventArgs e) { switch (e.Action) { case NotifyCollectionChangedAction.Add: foreach (TilePool pool in e.NewItems) AddPoolPresenter(pool); break; case NotifyCollectionChangedAction.Replace: foreach (TilePool pool in e.OldItems) RemovePoolPresenter(pool.Name); foreach (TilePool pool in e.NewItems) AddPoolPresenter(pool); break; case NotifyCollectionChangedAction.Remove: foreach (TilePool pool in e.OldItems) RemovePoolPresenter(pool.Name); break; } }*/ private void TilePoolAdded(object sender, ResourceEventArgs<TilePool> e) { AddPoolPresenter(e.Resource); }
protected virtual void OnTilePoolRemoved(ResourceEventArgs<TilePool> e) { var ev = TilePoolRemoved; if (ev != null) ev(this, e); }
protected virtual void OnObjectRemoved(ResourceEventArgs<ObjectClass> e) { var ev = ObjectRemoved; if (ev != null) ev(this, e); }
protected virtual void OnLibraryRemoved(ResourceEventArgs<Library> e) { var ev = LibraryRemoved; if (ev != null) ev(this, e); }
protected virtual void OnLevelRemoved(ResourceEventArgs<Level> e) { var ev = LevelRemoved; if (ev != null) ev(this, e); }
private void SourcePoolResourceInvalidated(object sender, ResourceEventArgs e) { Release(e.Uid); }
private void LevelRemovedHandler(object sender, ResourceEventArgs<Level> e) { _content.Remove(e.Uid); }
private void ObjectPoolAdded(object sender, ResourceEventArgs<ObjectPool> e) { HookObjectPool(e.Resource); AddPoolPresenter(e.Resource); }
private void ObjectPoolRemoved(object sender, ResourceEventArgs<ObjectPool> e) { UnhookObjectPool(e.Resource); RemovePoolPresenter(e.Resource.Uid); }
private void ObjectPoolAddedHandler(object sender, ResourceEventArgs<ObjectPool> e) { HookObjectPool(e.Resource); }
private void TilePoolRemoved(object sender, ResourceEventArgs<TilePool> e) { RemovePoolPresenter(e.Resource.Uid); }
private void ObjectPoolRemovedHandler(object sender, ResourceEventArgs<ObjectPool> e) { UnhookObjectPool(e.Resource); }
private void ResourceModifiedHandler(object sender, EventArgs e) { ResourceEventArgs <T> args = new ResourceEventArgs <T>((T)sender); OnResourceModified(args); }
private void TilePoolAdded(object sender, ResourceEventArgs<TilePool> e) { AddPoolPresenter(e.Resource); SelectTilePool(e.Uid); OnSyncTilePoolList(EventArgs.Empty); OnSyncTilePoolControl(EventArgs.Empty); }
private void TilePoolModified(object sender, ResourceEventArgs<TilePool> e) { OnSyncTilePoolList(EventArgs.Empty); OnSyncTilePoolControl(EventArgs.Empty); }
private void LevelAddedHandler(object sender, ResourceEventArgs<Level> e) { _content[e.Uid] = new LevelPresenter(_pm, _editor, e.Resource); }