Weighing: Use App.MainDispatcher.BeginInvoke in DeliveryAdminWindow
This commit is contained in:
		| @@ -31,7 +31,7 @@ namespace Elwig.Helpers.Weighing { | ||||
|         } | ||||
|  | ||||
|         protected virtual void RaiseWeighingEvent(WeighingEventArgs evt) { | ||||
|             App.MainDispatcher.BeginInvoke(() => WeighingEvent?.Invoke(this, evt)); | ||||
|             WeighingEvent?.Invoke(this, evt); | ||||
|         } | ||||
|  | ||||
|         public new void Dispose() { | ||||
|   | ||||
| @@ -1004,7 +1004,7 @@ namespace Elwig.Windows { | ||||
|  | ||||
|         private void Scale_Weighing(object sender, WeighingEventArgs evt) { | ||||
|             if (sender is not IScale scale) return; | ||||
|             OnWeighingResult(scale, evt.Result); | ||||
|             App.MainDispatcher.BeginInvoke(() => OnWeighingResult(scale, evt.Result)); | ||||
|         } | ||||
|  | ||||
|         private async void SearchInput_TextChanged(object sender, RoutedEventArgs evt) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user