Esempio n. 1
0
 private void HandleFormLoad(object sender, EventArgs e)
 {
     this.Hide();
     Thread thread = new Thread(new ThreadStart(this.ShowSplashScreen));
     thread.Start();
     ClasseSplash worker = new ClasseSplash();
     worker.ProgressChanged += (o, ex) =>
     {
         this.frmSplash.UpdateProgress(ex.Progress);
     };
     worker.HardWorkDone += (o, ex) =>
         {
             done = true;
             this.Show();
         };
     worker.DoHardWork();
 }