private void button14_Click(object sender, EventArgs e) { if (this.InvokeRequired) { dbutton14_Click d = new dbutton14_Click(button14_Click); object[] args = { sender, e }; this.Invoke(d, args); } else { if (AcceptedEmulator != null) { if (AcceptedEmulator.IsConnected) { if (!filetb.Text.Equals("") && !linetb.Text.Equals("")) { String message = "SETB " + filetb.Text.ToLower() + " " + linetb.Text + "\n"; BreakPoint bt = new BreakPoint(filetb.Text, linetb.Text); BreakPoints.Add(bt); AcceptedEmulator.Send(message); } } } } }
private void button14_Click(object sender, EventArgs e) { if (this.InvokeRequired) { dbutton14_Click d = new dbutton14_Click(button14_Click); object[] args = { sender, e }; this.Invoke(d, args); } else { if (AcceptedEmulator != null) { if (AcceptedEmulator.IsConnected) { if (!filetb.Text.Equals("") && !linetb.Text.Equals("")) { String message = "SETB " + filetb.Text.ToLower() + " " + linetb.Text + "\n"; BreakPoint bt = new BreakPoint(filetb.Text, linetb.Text); BreakPoints.Add(bt); AcceptedEmulator.Send(message); } } } } }