コード例 #1
0
        private void btnNewSprite_Click(object sender, EventArgs e)
        {
            frmNewSprite frm = new frmNewSprite();

            if (frm.ShowDialog(this, Resources) == DialogResult.Cancel)
            {
                return;
            }

            frmAddSpriteFrames frmAdd = new frmAddSpriteFrames();

            frmAdd.SpriteSize = frm.SpriteFrameSize;

            if (frmAdd.ShowDialog(this) == DialogResult.Cancel)
            {
                return;
            }

            SpriteResource res = new SpriteResource(frm.SpriteName);



            Resources.Add(res);

            OnResourcesChanged();
        }
コード例 #2
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            frmAddSpriteFrames frm = new frmAddSpriteFrames();

            frm.SpriteSize = AgateLib.WinForms.Interop.Convert(mCurrentSprite.Size);

            if (frm.ShowDialog(this) == DialogResult.OK)
            {
            }
        }
コード例 #3
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            frmAddSpriteFrames frm = new frmAddSpriteFrames();

            frm.SpriteSize = currentSprite.Size.ToDrawingSize();

            if (frm.ShowDialog(this) == DialogResult.OK)
            {
            }
        }