Exemplo n.º 1
0
 private void imagXpress1_ProgressEvent(object sender, Accusoft.ImagXpressSdk.ProgressEventArgs e)
 {
     liststatus.Items.Add(e.PercentDone.ToString(cultNumber) + "% Loading Complete.");
     if (e.IsComplete)
     {
         liststatus.Items.Add(e.TotalBytes + " Bytes Completed Loading.");
     }
     liststatus.SelectedIndex = liststatus.Items.Count - 1;
 }
Exemplo n.º 2
0
 private void ProgressEventHandler(object sender, Accusoft.ImagXpressSdk.ProgressEventArgs e)
 {
     if (lstView.InvokeRequired)
     {
         object[] theArgs = { e.PercentDone.ToString(cultNumber) + "% Loading Complete." };
         lstView.Invoke(new controlTextModifier(this.lstViewThreadSafeTextAdder), theArgs);
         if (e.IsComplete)
         {
             theArgs[0] = e.TotalBytes + " Bytes Completed Loading.";
             lstView.Invoke(new controlTextModifier(this.lstViewThreadSafeTextAdder), theArgs);
         }
     }
     else
     {
         lstView.Items.Add(e.PercentDone.ToString(cultNumber) + "% Loading Complete.");
         if (e.IsComplete)
         {
             lstView.Items.Add(e.TotalBytes + " Bytes Completed Loading.");
         }
         lstView.SelectedIndex = lstView.Items.Count - 1;
     }
 }