public void Undo(Document doc) { SpriteDocument sprite = (SpriteDocument)doc; ImageArray frames = (ImageArray)sprite.Frames; frames.Clear(); frames.Resize(oldSize.Width, oldSize.Height); frames.AddRange(oldFrames); sprite.FireChanged(); }
public void Undo(Document doc) { SpriteDocument sprite = (SpriteDocument)doc; ImageArray frames = (ImageArray)sprite.Frames; frames.Clear(); frames.Resize(oldSize.Width, oldSize.Height); frames.AddRange(oldFrames); sprite.FireChanged(); }