Esempio n. 1
0
        private void timer1_Tick(object sender, EventArgs e)
        {
            if (progress == null)
            {
                return;
            }
            Exception ex = progress.GetException();

            if (progress.GetException() != null)
            {
                show.ShowException(ex);
                this.Close();
            }
            progressBar1.Value = (int)(progress.ProgressUpdate() * 100);
            if (progressBar1.Value == progressBar1.Maximum)
            {
                if (show != null)
                {
                    show.Show(progress.GetResults());
                }
                Close();
            }
        }