コード例 #1
0
 public void SendingSuccessfullyMessage()
 {
     System.Windows.Application.Current.Dispatcher.Invoke((Action) delegate
     {
         label_status.Content = "Отправлено";
         OnCompleteTransmit?.Invoke();
     });
 }
コード例 #2
0
 public void ChangedvalueForProgressBar()
 {
     System.Windows.Application.Current.Dispatcher.Invoke((Action) delegate
     {
         cout++;
         double how            = cout;
         double all            = IsHeightValue;
         double value          = how / all * 100;
         status_progress.Value = value;
         status_label.Content  = cout + "|" + IsHeightValue;
         if (cout == IsHeightValue)
         {
             OnCompleteTransmit?.Invoke();
         }
     });
 }