Esempio n. 1
0
 private void progressChanged(int value, String message)
 {
     if (this.Dispatcher.Thread != System.Threading.Thread.CurrentThread)
     {
         progressChanged_Callback bR = new progressChanged_Callback(progressChanged);
         this.Dispatcher.Invoke(bR, new Object[] { value, message });
         return;
     }
     //
     if (message != null && message != String.Empty)
     {
         lMessage.Content = message;
     }
     pbMain.Value = value;
 }
Esempio n. 2
0
 private void progressChanged(int value, String message)
 {
     if (this.Dispatcher.Thread != System.Threading.Thread.CurrentThread) {
         progressChanged_Callback bR = new progressChanged_Callback(progressChanged);
         this.Dispatcher.Invoke(bR, new Object[] { value, message });
         return;
     }
     //
     if (message != null && message != String.Empty) {
         lMessage.Content = message;
     }
     pbMain.Value = value;
 }