Exemple #1
0
        private void menuSprite_Clear_Click(object sender, EventArgs e)
        {
            Spriteset ss = ActiveSpriteset();
            Sprite    s  = ActiveSprite();

            if (s == null)
            {
                return;
            }

            if (!s.IsEmpty())
            {
                //if (!AskYesNo("Are you sure you want to erase the data in the currently selected sprite?"))
                if (!AskYesNo(ResourceMgr.GetString("EraseCurrentSprite")))
                {
                    return;
                }
                s.Clear();
                s.RecordUndoAction("clear", ActiveUndo());
                HandleSpriteDataChanged(ss);
            }
        }