public override void Undo() { Graphic.ChangeBackground(prevBackground); }
public override void Redo() { Graphic.ChangeBackground(curBackground); }
public BackgroundChanging(Graphic graphic, Brush newBackground) : base(graphic) { prevBackground = Graphic.GetBackground(); curBackground = newBackground; Graphic.ChangeBackground(newBackground); }