private void ux_ManageGameAssemblies_Click(object sender, EventArgs e) { var gameAssemblies = new GameAssemblies(this); var result = gameAssemblies.ShowDialog(); if (result == DialogResult.OK) { foreach (var type in gameAssemblies.RemovedEntities) { Project.Entities.Remove(type); } Project.Entities.AddRange(gameAssemblies.AddedEntities); UpdateUserInterface(); } }
private void ux_ManageGameAssemblies_Click( object sender, EventArgs e ) { var gameAssemblies = new GameAssemblies( this ); var result = gameAssemblies.ShowDialog(); if( result == DialogResult.OK ) { foreach( var type in gameAssemblies.RemovedEntities ) Project.Entities.Remove( type ); Project.Entities.AddRange( gameAssemblies.AddedEntities ); UpdateUserInterface(); } }