Ejemplo n.º 1
0
 public SaveAsCommand(Corner2CornerProject project, ICorner2CornerCommandsInput commandsInput)
     : base(
         project,
         commandsInput,
         Corner2CornerCommandOptions.New().WithoutUndo())
 {
 }
Ejemplo n.º 2
0
 public LoadCommand(Corner2CornerProject project, ICorner2CornerCommandsInput commandsInput, IUndoRedoManager undoRedoManager)
     : base(
         project,
         commandsInput,
         Corner2CornerCommandOptions.New().ChangesEverything().ResetsOperations())
 {
     this.undoRedoManager = undoRedoManager;
 }
Ejemplo n.º 3
0
 protected BaseCorner2CornerCommand(
     Corner2CornerProject project,
     ICorner2CornerCommandsInput commandsInput,
     Corner2CornerCommandOptions options)
 {
     this.Project       = project ?? throw new ArgumentNullException(nameof(project));
     this.options       = options ?? throw new ArgumentNullException(nameof(options));
     this.CommandsInput = commandsInput;
 }
        public static Corner2CornerCommandOptions New()
        {
            Corner2CornerCommandOptions result = new Corner2CornerCommandOptions()
            {
                ProjectChangeDetails = new ProjectChangeDetails()
            };

            return(result);
        }
Ejemplo n.º 5
0
 public SetImageGridCellCommand(Corner2CornerProject project, ICorner2CornerCommandsInput commandsInput)
     : base(project, commandsInput, Corner2CornerCommandOptions.New().ChangesImage())
 {
 }
Ejemplo n.º 6
0
 public SetGridBackgroundCommand(Corner2CornerProject project, ICorner2CornerCommandsInput commandsInput)
     : base(project, commandsInput, Corner2CornerCommandOptions.New().ChangesImage())
 {
 }
Ejemplo n.º 7
0
 public SetWidthCommand(Corner2CornerProject project, ICorner2CornerCommandsInput commandsInput)
     : base(project, commandsInput, Corner2CornerCommandOptions.New())
 {
 }
 public SetSelectedPaletteItemCommand(Corner2CornerProject project, ICorner2CornerCommandsInput commandsInput)
     : base(project, commandsInput, Corner2CornerCommandOptions.New().ChangesPalette())
 {
 }
Ejemplo n.º 9
0
 public SaveTextPatternCommand(Corner2CornerProject project, ICorner2CornerCommandsInput commandsInput, IUndoRedoManager undoRedoManager)
     : base(project, commandsInput, Corner2CornerCommandOptions.New().WithoutUndo())
 {
     this.undoRedoManager = undoRedoManager;
 }