www.pudn.com > dotnetupdater.rar > UpdateForm.cs


using System; 
using System.Drawing; 
using System.Collections; 
using System.ComponentModel; 
using System.Windows.Forms; 
 
namespace Microsoft.Samples.AppUpdater 
{ 
	///  
	/// Summary description for UpdateForm. 
	///  
	public class UpdateForm : System.Windows.Forms.Form 
	{ 
		private System.Windows.Forms.Label label1; 
		private System.Windows.Forms.Button button1; 
		private System.Windows.Forms.Button button2; 
		private System.Windows.Forms.Label label2; 
		///  
		/// Required designer variable. 
		///  
		private System.ComponentModel.Container components = null; 
 
		public UpdateForm() 
		{ 
			// 
			// 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.label1 = new System.Windows.Forms.Label(); 
			this.button1 = new System.Windows.Forms.Button(); 
			this.button2 = new System.Windows.Forms.Button(); 
			this.label2 = new System.Windows.Forms.Label(); 
			this.SuspendLayout(); 
			//  
			// label1 
			//  
			this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); 
			this.label1.Location = new System.Drawing.Point(48, 24); 
			this.label1.Name = "label1"; 
			this.label1.Size = new System.Drawing.Size(328, 23); 
			this.label1.TabIndex = 0; 
			this.label1.Text = " An update to this application is available."; 
			//  
			// button1 
			//  
			this.button1.DialogResult = System.Windows.Forms.DialogResult.Yes; 
			this.button1.Location = new System.Drawing.Point(80, 112); 
			this.button1.Name = "button1"; 
			this.button1.Size = new System.Drawing.Size(96, 32); 
			this.button1.TabIndex = 1; 
			this.button1.Text = "Yes"; 
			//  
			// button2 
			//  
			this.button2.DialogResult = System.Windows.Forms.DialogResult.No; 
			this.button2.Location = new System.Drawing.Point(224, 112); 
			this.button2.Name = "button2"; 
			this.button2.Size = new System.Drawing.Size(96, 32); 
			this.button2.TabIndex = 2; 
			this.button2.Text = "No"; 
			this.button2.Click += new System.EventHandler(this.button2_Click); 
			//  
			// label2 
			//  
			this.label2.Location = new System.Drawing.Point(32, 56); 
			this.label2.Name = "label2"; 
			this.label2.Size = new System.Drawing.Size(360, 23); 
			this.label2.TabIndex = 3; 
			this.label2.Text = "Would you like to start using the update now?"; 
			//  
			// UpdateForm 
			//  
			this.AutoScaleBaseSize = new System.Drawing.Size(8, 20); 
			this.ClientSize = new System.Drawing.Size(408, 163); 
			this.Controls.AddRange(new System.Windows.Forms.Control[] { 
																		  this.label2, 
																		  this.button2, 
																		  this.button1, 
																		  this.label1}); 
			this.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); 
			this.Name = "UpdateForm"; 
			this.Text = "Update Available"; 
			this.ResumeLayout(false); 
 
		} 
		#endregion 
 
		private void button2_Click(object sender, System.EventArgs e) { 
		 
		} 
	} 
}