Exemplo n.º 1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (textBox1.Text == "")
     {
         MessageBox.Show("PLEASE SELECT ANY FILE");
     }
     else
     {
         if (this.button1.Text == "PLAY")
         {
             this.button1.BackColor = System.Drawing.Color.IndianRed;
             this.button1.Text      = "PAUSE";
             if (flag == 0)
             {
                 form2.excelprocess();
             }
             else
             {
                 form2.starttimer(); flag = 0;
             }
         }
         else
         {
             this.button1.BackColor = System.Drawing.Color.DarkOliveGreen;
             this.button1.Text      = "PLAY";
             flag = 1;
             form2.tymstopper();
         }
     }
 }