/// <summary> /// Displays process progress. /// </summary> public void Start() { this.Update(); try { this.progressBar.Value = 0; this.lblProcess.Text = "Rolling back..."; Log.WriteStart("Rolling back"); RollBackProcess process = new RollBackProcess(this.progressBar); process.Run(); Log.WriteEnd("Rolled back"); this.progressBar.Value = 100; } catch (Exception ex) { if (Utils.IsThreadAbortException(ex)) { return; } ShowError(); this.Wizard.Close(); } this.lblProcess.Text = "Rollback completed. Click Finish to exit setup."; this.AllowMoveNext = true; this.AllowCancel = true; }
/// <summary> /// Displays process progress. /// </summary> public void Start() { this.Update(); try { this.progressBar.Value = 0; this.lblProcess.Text = "Rolling back..."; Log.WriteStart("Rolling back"); RollBackProcess process = new RollBackProcess(this.progressBar); process.Run(); Log.WriteEnd("Rolled back"); this.progressBar.Value = 100; } catch(Exception ex) { if (Utils.IsThreadAbortException(ex)) return; ShowError(); this.Wizard.Close(); } this.lblProcess.Text = "Rollback completed. Click Finish to exit setup."; this.AllowMoveNext = true; this.AllowCancel = true; }