コード例 #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();
            }
        }
コード例 #2
0
ファイル: Editor.cs プロジェクト: rlugojr/fragengine
        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();
            }
        }