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