Ejemplo n.º 1
0
 void t8can_onReadProgress(object sender, T8CANLib.T8Can.ReadProgressEventArgs e)
 {
     //AddLogItem("Progress: " + e.Percentage.ToString());
     if (progressBar1.Value != (int)e.Percentage)
     {
         progressBar1.Value = (int)e.Percentage;
     }
     string text = e.Percentage.ToString("F2") + " % done";
     if (label1.Text != text)
     {
         label1.Text = text;
         Application.DoEvents();
     }
 }
Ejemplo n.º 2
0
 void t8can_onWriteProgress(object sender, T8CANLib.T8Can.WriteProgressEventArgs e)
 {
     if (progressBar1.Value != (int)e.Percentage)
     {
         progressBar1.Value = (int)e.Percentage;
     }
     string text = e.Percentage.ToString("F2") + " % done";
     if (label1.Text != text)
     {
         label1.Text = text;
         Application.DoEvents();
     }
 }
Ejemplo n.º 3
0
 void t8can_onCanInfo(object sender, T8CANLib.T8Can.CanInfoEventArgs e)
 {
     AddLogItem(e.Info);
     //Application.DoEvents();
 }