private void button5_Click(object sender, EventArgs e) { if (this.InvokeRequired) { dbutton5_Click d = new dbutton5_Click(button5_Click); object[] args = { sender, e }; this.Invoke(d, args); } else { if (AcceptedEmulator != null) { if (AcceptedEmulator.IsConnected) { AcceptedEmulator.Send("LOCALS\n"); } } } }
private void button5_Click(object sender, EventArgs e) { if (this.InvokeRequired) { dbutton5_Click d = new dbutton5_Click(button5_Click); object[] args = { sender, e }; this.Invoke(d, args); } else { if (AcceptedEmulator != null) { if (AcceptedEmulator.IsConnected) { AcceptedEmulator.Send("LOCALS\n"); } } } }