internal void ClickContinueButton() { // InvokeRequired required compares the thread ID of the // calling thread to the thread ID of the creating thread. // If these threads are different, it returns true. if (this.ContinueCommand.InvokeRequired) { ClickContinueButtonCallback d = new ClickContinueButtonCallback(ClickContinueButton); this.Invoke(d, new object[] { }); } else { this.ContinueCommand.PerformClick(); } }
internal void ClickContinueButton() { // InvokeRequired required compares the thread ID of the // calling thread to the thread ID of the creating thread. // If these threads are different, it returns true. if (this.ContinueCommand.InvokeRequired) { ClickContinueButtonCallback d = new ClickContinueButtonCallback(ClickContinueButton); this.Invoke(d, new object[] { }); } else { this.ContinueCommand.PerformClick(); } }