コード例 #1
0
        /// <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;
        }
コード例 #2
0
ファイル: RollBackPage.cs プロジェクト: jordan49/websitepanel
		/// <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;
		}