using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; namespace Microsoft.Fusion.ADF { /// /// Summary description for Progress. /// public class Progress : System.Windows.Forms.Form { private System.Windows.Forms.ProgressBar progressBar1; private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label2; /// /// Required designer variable. /// private System.ComponentModel.Container components = null; public Progress() { // // Required for Windows Form Designer support // InitializeComponent(); // // TODO: Add any constructor code after InitializeComponent call // } /// /// Clean up any resources being used. /// protected override void Dispose( bool disposing ) { if( disposing ) { if(components != null) { components.Dispose(); } } base.Dispose( disposing ); } #region Windows Form Designer generated code /// /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// private void InitializeComponent() { this.progressBar1 = new System.Windows.Forms.ProgressBar(); this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.SuspendLayout(); // // progressBar1 // this.progressBar1.Location = new System.Drawing.Point(24, 88); this.progressBar1.Name = "progressBar1"; this.progressBar1.Size = new System.Drawing.Size(296, 24); this.progressBar1.TabIndex = 0; // // label1 // this.label1.Location = new System.Drawing.Point(24, 16); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(296, 24); this.label1.TabIndex = 1; this.label1.Text = "Downloading..."; // // label2 // this.label2.Location = new System.Drawing.Point(24, 48); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(296, 24); this.label2.TabIndex = 2; // // Progress // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(360, 126); this.Controls.AddRange(new System.Windows.Forms.Control[] { this.label2, this.label1, this.progressBar1}); this.Name = "Progress"; this.Text = "ClickOnce"; this.ResumeLayout(false); } #endregion public void SetRange(int minStatus, int maxStatus) { progressBar1.Minimum = minStatus; progressBar1.Maximum = maxStatus; } public void SetStatus(int status) { progressBar1.Value = status; } public void SetText(string text) { this.label1.Text = text; } public void SetTotal(string text) { this.label2.Text = text; } } }