Exemple #1
0
 private void sendBt_Click(object sender, EventArgs e)
 {
     if (this.InvokeRequired)
     {
         dsendBt_Click d    = new dsendBt_Click(sendBt_Click);
         object[]      args = { sender, e };
         this.Invoke(d, args);
     }
     else
     {
         if (AcceptedEmulator != null)
         {
             if (AcceptedEmulator.IsConnected)
             {
                 if (!SendTb.Text.Equals(""))
                 {
                     AcceptedEmulator.Send(SendTb.Text);
                 }
             }
         }
     }
 }
Exemple #2
0
 public void sendAddBreakPointCommand(BreakPoint breakPoint)
 {
     if (AcceptedEmulator != null)
     {
         if (AcceptedEmulator.IsConnected)
         {
             String message = "SETB " + breakPoint.File + " " + breakPoint.LineNumber + "\n";
             AcceptedEmulator.Send(message);
         }
     }
 }