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();
         }
     }
 }
Exemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (this.button1.Text == " ")
            {
                //
                //MessageBox.Show("PLEASE SELECT ANddddY FILE");

                if (flag == 0)
                {
                    if (wrt == "")
                    {
                        MessageBox.Show("PLEASE SELECT ANY FILE");
                    }
                    else
                    {
                        this.button1.Text            = "";
                        this.button1.BackgroundImage = global::WindowsFormsApplication1.Properties.Resources.downloadpp;
                        form2.start(wrt, pic);
                        // form2.excelprocess();
                    }
                }
                else
                {
                    form2.starttimer(); flag     = 0;
                    this.button1.Text            = "";
                    this.button1.BackgroundImage = global::WindowsFormsApplication1.Properties.Resources.downloadpp;
                }
            }
            else
            {
                this.button1.Text            = " ";
                this.button1.BackgroundImage = global::WindowsFormsApplication1.Properties.Resources.play;
                flag = 1;
                form2.tymstopper();
            }
        }