Exemplo n.º 1
0
 private void button7_Click(object sender, EventArgs e)
 {
     if (this.InvokeRequired)
     {
         dbutton7_Click d    = new dbutton7_Click(button7_Click);
         object[]       args = { sender, e };
         this.Invoke(d, args);
     }
     else
     {
         if (AcceptedEmulator != null)
         {
             if (AcceptedEmulator.IsConnected)
             {
                 if (!dumptb.Text.Equals(""))
                 {
                     AcceptedEmulator.Send("EXEC return (" + dumptb.Text + ")\n");
                 }
             }
         }
     }
 }
Exemplo n.º 2
0
        private void button7_Click(object sender, EventArgs e)
        {
            if (this.InvokeRequired)
            {
                dbutton7_Click d = new dbutton7_Click(button7_Click);
                object[] args = { sender, e };
                this.Invoke(d, args);
            }
            else
            {
                if (AcceptedEmulator != null)
                {
                    if (AcceptedEmulator.IsConnected)
                    {

                        if (!dumptb.Text.Equals(""))
                        {
                            AcceptedEmulator.Send("EXEC return (" + dumptb.Text + ")\n");
                        }

                    }
                }
            }
        }