Ejemplo n.º 1
0
        void ShowInput(bool Multiline)
        {
            if (this.IsDisposed)
            {
                return;
            }
            if (this.InvokeRequired)
            {
                ShowInput_d SI = new ShowInput_d(ShowInput);
                this.Invoke(SI, new object[] { Multiline });
            }
            else
            {
                InputTB.Text = "";

                BaseSplit.Panel2Collapsed = false;

                InputTB.Multiline = Multiline;
                if (Multiline)
                {
                    InputTB.Height     = BaseSplit.Panel2.Height - 70;
                    InputTB.ScrollBars = ScrollBars.Both;
                    InputLbl.Text      = "Enter your input below and press the 'Submit' button:";
                }
                else
                {
                    InputLbl.Text = "Enter your input below and press hit the enter key or press the 'Submit' button:";
                }
                OutputTB.SelectionStart = OutputTB.Text.Length;
                OutputTB.ScrollToCaret();
                InputTB.Focus();
            }
        }
Ejemplo n.º 2
0
        void ShowInput(bool Multiline)
        {
            if (this.IsDisposed) return;
            if (this.InvokeRequired)
            {
                ShowInput_d SI = new ShowInput_d(ShowInput);
                this.Invoke(SI, new object[] { Multiline });
            }
            else
            {
                InputTB.Text = "";

                BaseSplit.Panel2Collapsed = false;

                InputTB.Multiline = Multiline;
                if (Multiline)
                {
                    InputTB.Height = BaseSplit.Panel2.Height - 70;
                    InputTB.ScrollBars = ScrollBars.Both;
                    InputLbl.Text = "Enter your input below and press the 'Submit' button:";
                }
                else
                {
                    InputLbl.Text = "Enter your input below and press hit the enter key or press the 'Submit' button:";
                }
                OutputTB.SelectionStart = OutputTB.Text.Length;
                OutputTB.ScrollToCaret();
                InputTB.Focus();
            }
        }