Beispiel #1
0
        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
            }
        }
Beispiel #2
0
		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
			}

		}