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(); }
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) { } }
private void btnAdd_Click(object sender, EventArgs e) { frmAddSpriteFrames frm = new frmAddSpriteFrames(); frm.SpriteSize = currentSprite.Size.ToDrawingSize(); if (frm.ShowDialog(this) == DialogResult.OK) { } }