private void runBt_Click(object sender, EventArgs e) { if (this.InvokeRequired) { drunBt_Click d = new drunBt_Click(runBt_Click); object[] args = { sender, e }; this.Invoke(d, args); } else { if (AcceptedEmulator != null) { if (AcceptedEmulator.IsConnected) { this.mainForm.cgEeditor1.SetDebuggerAtLine(-1); this.backtraceListView.Items.Clear(); this.localsListView.Items.Clear(); this.setHandLostWithSimulator(false); AcceptedEmulator.Send("RUN\n"); } } } }
private void runBt_Click(object sender, EventArgs e) { if (this.InvokeRequired) { drunBt_Click d = new drunBt_Click(runBt_Click); object[] args = { sender, e }; this.Invoke(d, args); } else { if (AcceptedEmulator != null) { if (AcceptedEmulator.IsConnected) { this.mainForm.cgEeditor1.SetDebuggerAtLine(-1); this.backtraceListView.Items.Clear(); this.localsListView.Items.Clear(); this.setHandLostWithSimulator(false); AcceptedEmulator.Send("RUN\n"); } } } }