Example #1
0
 private void FileManagerCommandsRegister(CommandHolder holder) => holder
 .Register(new ChangeDirectoryCommand(_filesManager))
 .Register(new CopyPathCommand(_filesManager))
 .Register(new DeletePathCommand(_filesManager))
 .Register(new ExitCommand(this))
 .Register(new ShowDetailsCommand(_filesManager, _consoleHandler))
 ;
Example #2
0
 private void CommandModeCommandsRegister(CommandHolder holder) => holder
 .Register(new AppendCharToCommandLineCommand(_commandHolder, _consoleHandler))
 .Register(new ExecuteFileManagerCommand(_commandHolder))
 .Register(new MoveCursorLeftCommand(_consoleHandler))
 .Register(new MoveCursorRightCommand(_commandHolder, _consoleHandler))
 .Register(new NextCommandCommand(_commandHolder))
 .Register(new PreviousCommandCommand(_commandHolder))
 .Register(new RemovePreviousCharFromCommandLineCommand(_commandHolder, _consoleHandler))
 ;
Example #3
0
 private void SharedCommandsRegister(CommandHolder holder) => holder
 .Register(new SwitchInputHandleModeCommand(holder), InputHandleMode.Shared)
 ;
Example #4
0
 private void ViewModeCommandsRegister(CommandHolder holder) => holder
 .Register(new MoveCursorToNextLineCommand(_consoleHandler), InputHandleMode.List)
 .Register(new MoveCursorToPreviousLineCommand(_consoleHandler), InputHandleMode.List)
 .Register(new ShowSelectedLineInfoCommand(_filesManager, _consoleHandler), InputHandleMode.List)
 ;