Esempio n. 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();
        }
Esempio n. 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();
        }