Example #1
0
 private void button4_Click(object sender, EventArgs e)
 {
     try
     {
         nail1.Stop();
         button3.Text = "Pausar";
         nail1        = null;
     }
     catch { }
 }
Example #2
0
 private void button5_Click(object sender, EventArgs e)
 {
     try
     {
         dataGridView2.Rows.Clear();
         this.button7_Click(null, null);
         nail2                = new ThreadCount(File.ReadAllText(textBox1.Text), false);
         nail2.AccessData    += AddGrid2;
         nail2.AccessBar     += AddBar;
         progressBar2.Maximum = nail2.GetSize(false);
         progressBar2.Style   = ProgressBarStyle.Continuous;
         progressBar2.Value   = 0;
     }
     catch
     {
         MessageBox.Show("Archivo no especificado");
     }
 }