Ejemplo n.º 1
0
 private void Timer2_Tick(object sender, EventArgs e)
 {
     toolStripProgressBar1.Value += 1;
     if (toolStripProgressBar1.Value >= 100)
     {
         Timer2.Enabled = false;
         if (f == 1)
         {
             toolStripProgressBar1.Style = ProgressBarStyle.Blocks;
             toolStripProgressBar1.Value = 0;
             Form frm16 = new Form16();
             frm16.ShowDialog();
             return;
         }
         if (f == 2)
         {
             toolStripProgressBar1.Style = ProgressBarStyle.Blocks;
             toolStripProgressBar1.Value = 0;
             Form frm10 = new Form10();
             frm10.ShowDialog();
             return;
         }
         if (f == 3)
         {
             toolStripProgressBar1.Style = ProgressBarStyle.Blocks;
             toolStripProgressBar1.Value = 0;
             Form frm12 = new Form12();
             frm12.ShowDialog();
             return;
         }
         if (f == 4)
         {
             toolStripProgressBar1.Style = ProgressBarStyle.Blocks;
             toolStripProgressBar1.Value = 0;
             this.WindowState            = FormWindowState.Maximized;
             Form frm5 = new Form5();
             frm5.ShowDialog();
         }
         if (f == 5)
         {
             toolStripProgressBar1.Style = ProgressBarStyle.Blocks;
             toolStripProgressBar1.Value = 0;
             Form frm7 = new Form7();
             frm7.ShowDialog();
             return;
         }
         if (f == 6)
         {
             toolStripProgressBar1.Style = ProgressBarStyle.Blocks;
             toolStripProgressBar1.Value = 0;
             Form frm8 = new Form8();
             frm8.ShowDialog();
             return;
         }
         if (f == 7)
         {
             toolStripProgressBar1.Style = ProgressBarStyle.Blocks;
             toolStripProgressBar1.Value = 0;
             Form frm9 = new Form9();
             frm9.ShowDialog();
             return;
         }
         if (f == 8)
         {
             toolStripProgressBar1.Style = ProgressBarStyle.Blocks;
             toolStripProgressBar1.Value = 0;
             Form frm13 = new Form13();
             frm13.ShowDialog();
             return;
         }
         if (f == 10)
         {
             toolStripProgressBar1.Style = ProgressBarStyle.Blocks;
             toolStripProgressBar1.Value = 0;
             Form frm6 = new Form6();
             frm6.ShowDialog();
             return;
         }
     }
 }