Esempio n. 1
0
    private void OnShiftRight(object o, EventArgs args)
    {
        Command command = new PathShiftCommand("Path shifted forward", path, 1);

        command.Do();
        UndoManager.AddCommand(command);
        Redraw();
    }
Esempio n. 2
0
    private void OnShiftLeft(object o, EventArgs args)
    {
        Command command = new PathShiftCommand("Path shifted backwards", path, -1);

        command.Do();
        UndoManager.AddCommand(command);
        Redraw();
    }