Exemple #1
0
        void CAC(string s)
        {
            if (this.InvokeRequired)
            {
                Invoke(new MethodInvoker(() =>
                {
                    PInteraction.sendRusher(false);

                    toolTip1.SetToolTip(cueTextBox1, s);
                    toolTip1.Show(s, cueTextBox1, 3000);

                    _form1.ChangeSetting(true);

                    cueTextBox1.Enabled = true;
                    cueTextBox1.Text    = null;

                    groupBox1.Focus();

                    button1.Text = "→";
                    ssb          = false;
                }));
            }
            else
            {
                PInteraction.sendRusher(false);

                toolTip1.SetToolTip(cueTextBox1, s);
                toolTip1.Show(s, cueTextBox1, 3000);

                _form1.ChangeSetting(true);

                cueTextBox1.Enabled = true;
                cueTextBox1.Text    = null;

                groupBox1.Focus();

                button1.Text = "→";
                ssb          = false;
            }
        }
Exemple #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            groupBox1.Focus();

            if (!ssb)
            {
                if (cueTextBox1.Text.Trim().Length != 0)
                {
                    SearchMD();

                    WriteRG();

                    PInteraction.sendRusher(true);

                    _form1.ChangeSetting(false);

                    cueTextBox1.Enabled = false;

                    button1.Text = "x";

                    ssb = true;
                }
                else
                {
                    toolTip1.SetToolTip(cueTextBox1, "No destination selected!");
                    toolTip1.Show("No destination selected!", cueTextBox1, 3000);

                    cueTextBox1.Text = null;

                    groupBox1.Focus();
                }
            }
            else
            {
                CAC("Cancelled rush!");
            }
        }