private void MenuSpriteFrameAdd_Click(object sender, EventArgs e) { using (frmSpriteFrameAdd frm = new frmSpriteFrameAdd(mSprite)) { if (frm.ShowDialog(this) != DialogResult.OK) { return; } mSprite.AddImagePal(frm.NewImage as Bitmap, frm.NewImagePosition); SetControls(SetImage(mSelectedImage)); // refresh } }
private void MenuSpriteFrameAdd_Click(object sender, EventArgs e) { using (frmSpriteFrameAdd frm = new frmSpriteFrameAdd(mSprite)) { if (frm.ShowDialog(this) != DialogResult.OK) return; mSprite.AddImagePal(frm.NewImage as Bitmap, frm.NewImagePosition); SetControls(SetImage(mSelectedImage)); // refresh } }