/// <summary> /// To be called from Designer /// </summary> public frmUpdate() { InitializeComponent(); Instance = this; panel1.Height = pictureBox1.Height; ucHeading1.Text = ""; }
/// <summary> /// To be called from Workbench. /// </summary> /// <param name="productName"></param> public frmUpdate(string productName) { InitializeComponent(); Instance = this; panel1.Height = pictureBox1.Height; ucHeading1.Text = ""; ProductName = productName; webClient.DownloadFileCompleted += new AsyncCompletedEventHandler(Completed); webClient.DownloadProgressChanged += new DownloadProgressChangedEventHandler(ProgressChanged); }