/// <summary> /// Thread safe application rollback /// </summary> protected void Rollback() { // InvokeRequired compares thread ID of the // calling thread to thread ID of the creating thread. // If these threads are different, it returns true. if (this.InvokeRequired) { RollBackCallback callback = new RollBackCallback(Rollback); Invoke(callback, null); } else { Wizard.RollBack(); } }
/// <summary> /// Thread safe application rollback /// </summary> protected void Rollback() { // 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.InvokeRequired) { RollBackCallback callback = new RollBackCallback(Rollback); Invoke(callback, null); } else { Wizard.RollBack(); } }