Esempio n. 1
0
        private void updatesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmUpdates updates = new frmUpdates();

            updates.lblCheckforUpdate.Text = "Checking For Updates";
            updates.ShowDialog();

            timer1.Tick += new EventHandler(timer1_Tick);
        }
Esempio n. 2
0
        private void timer1_Tick(object sender, EventArgs e)
        {
            frmUpdates updates = new frmUpdates();

            if (updates.progressBar1.Value != 100)
            {
                updates.progressBar1.Value++;
            }
            else
            {
                timer1.Stop();
            }
        }