예제 #1
0
		/// <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 ) ;
			    }
		    }
예제 #2
0
		/// <summary>
		/// Constructor with a ShellForm parent (for execution mode).
		/// </summary>
		public HistoryForm ( ShellForm  parent ) : this ( ) 
		   {
			p_Parent	=  parent ;
		    }
예제 #3
0
		/// <summary>
		/// Builds a history for the specified shell window.
		/// </summary>
		public  ShellHistory ( ShellForm  parent )
		   {
			p_Parent	=  parent ;
		    }
예제 #4
0
		/// <summary>
		/// Builds a VMCommand object to be used with the specified ShellForm.
		/// </summary>
		public  VMCommands ( ShellForm   parent )
		   {
			ParentShell	=  parent ;
			CollectCommands ( ) ;
			Commands. Sort ( ) ;
		    }