Command.cs 567 B

12345678910111213141516
  1. namespace PaintDotNet.Annotation.Command
  2. {
  3. public abstract class Command
  4. {
  5. // This function is used to make Undo operation.
  6. // It makes action opposite to the original command.
  7. public abstract void Undo(GraphicsList list);
  8. // This command is used to make Redo operation.
  9. // It makes original command again.
  10. public abstract void Redo(GraphicsList list);
  11. // Derived classes have members which contain enough information
  12. // to make Undo and Redo operations for every specific command.
  13. }
  14. }