Example #1
0
        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();
            }
        }
Example #2
0
        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();
            }
        }