示例#1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ShellTextBox"/> class.
        /// </summary>
        public ShellTextBox()
        {
            InitializeComponent();
            CommandCompletion = new CommandCompletion();
            KeyPress += shellTextBox_KeyPress;
            KeyDown += ShellControl_KeyDown;
            KeyUp += OnKeyUp;
            PreviewKeyDown += PreviewKeyDown_event;

            PrintPrompt();
        }
示例#2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ShellTextBox"/> class.
        /// </summary>
        public ShellTextBox()
        {
            InitializeComponent();
            CommandCompletion = new CommandCompletion();
            KeyPress         += shellTextBox_KeyPress;
            KeyDown          += ShellControl_KeyDown;
            KeyUp            += OnKeyUp;
            PreviewKeyDown   += PreviewKeyDown_event;

            PrintPrompt();
        }