protected virtual void OnSyncCurrentProject(SyncProjectEventArgs e) { if (SyncCurrentProject != null) { SyncCurrentProject(this, e); } }
private void EditorSyncCurrentProject(object sender, SyncProjectEventArgs e) { if (_editor.Project != null) { BindProject(_editor.Project); } else { BindProject(null); } }
private void SyncCurrentProjectHandler(object sender, SyncProjectEventArgs e) { _selectedObjects = new Dictionary<Guid, ObjectClass>(); //_selectedObject = null; //_selectedObjectRef = null; //_editor.Project.ObjectPoolManager.Pools.ResourceRemapped += ObjectPool_NameChanged; SelectObjectPool(); OnSyncObjectPoolManager(EventArgs.Empty); OnSyncObjectPoolActions(EventArgs.Empty); OnSyncObjectPoolCollection(EventArgs.Empty); OnSyncObjectPoolControl(EventArgs.Empty); InvalidateObjectProtoCommands(); }
/*public void Dispose () { Dispose(true); GC.SuppressFinalize(this); }*/ /*protected virtual void Dispose (bool disposing) { if (_editor != null) { if (disposing) { _editor.SyncCurrentProject -= SyncCurrentProjectHandler; } _editor = null; } }*/ private void SyncCurrentProjectHandler(object sender, SyncProjectEventArgs e) { SelectBrush(Guid.Empty); OnSyncTileBrushManager(EventArgs.Empty); OnSyncTileBrushCollection(EventArgs.Empty); }
private void EditorSyncCurrentProject(object sender, SyncProjectEventArgs e) { if (_editor.Project != null) BindTilePoolManager(_editor.Project.TilePoolManager); else BindTilePoolManager(null); }