/// <summary> /// Processes the specified command. /// </summary> private void OnCommand ( ShellForm sender, CommandInputEventArgs e ) { VMCommand cmd = Commands. Search ( e. Argv [0] ) ; if ( cmd == null ) e. Handled = false ; else { int status = Commands. Run ( cmd, e. Argc, e.Argv ) ; e. Handled = true ; if ( status != 0 ) Write ( "[status = " + status. ToString ( ) + "]\n", ErrorColor ) ; } }
/// <summary> /// Constructor with a ShellForm parent (for execution mode). /// </summary> public HistoryForm ( ShellForm parent ) : this ( ) { p_Parent = parent ; }
/// <summary> /// Builds a history for the specified shell window. /// </summary> public ShellHistory ( ShellForm parent ) { p_Parent = parent ; }
/// <summary> /// Builds a VMCommand object to be used with the specified ShellForm. /// </summary> public VMCommands ( ShellForm parent ) { ParentShell = parent ; CollectCommands ( ) ; Commands. Sort ( ) ; }