public void SendingSuccessfullyMessage() { System.Windows.Application.Current.Dispatcher.Invoke((Action) delegate { label_status.Content = "Отправлено"; OnCompleteTransmit?.Invoke(); }); }
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(); } }); }