コード例 #1
0
        private void fromPackageToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SelectFromPackageForm selectFrom = new SelectFromPackageForm(ContentType.Texture);

            switch (selectFrom.ShowDialog())
            {
            case DialogResult.OK:
                DummyObject.ApplyTexture(ContentStorage.LoadTexture(selectFrom.SelectedObjectName, selectFrom.TextureLayout));
                break;

            default: break;
            }
        }
コード例 #2
0
        private void fromPackageToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            SelectFromPackageForm selectFrom = new SelectFromPackageForm(ContentType.Animation);

            switch (selectFrom.ShowDialog())
            {
            case DialogResult.OK:
                DummyObject.ApplyAnimation(ContentStorage.LoadAnimation(selectFrom.SelectedObjectName));
                break;

            default: break;
            }
        }