Beispiel #1
0
 /// <summary>
 /// Event callback for device status updates.
 /// </summary>
 /// <param name="drawer">CashDrawer object sending the status update event.</param>
 /// <param name="e">Event data associated with the status update.</param>
 private async void drawer_StatusUpdated(CashDrawer drawer, CashDrawerStatusUpdatedEventArgs e)
 {
     await MainPage.Current.Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () =>
     {
         UpdateStatusOutput(e.Status.StatusKind);
         rootPage.NotifyUser("Status updated event: " + e.Status.StatusKind.ToString(), NotifyType.StatusMessage);
     });
 }
 /// <summary>
 /// Event callback for device status updates.
 /// </summary>
 /// <param name="drawer">CashDrawer object sending the status update event.</param>
 /// <param name="e">Event data associated with the status update.</param>
 private async void drawer_StatusUpdated(CashDrawer drawer, CashDrawerStatusUpdatedEventArgs e)
 {
     await MainPage.Current.Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () =>
     {
         UpdateStatusOutput(e.Status.StatusKind);
         rootPage.NotifyUser("Status updated event: " + e.Status.StatusKind.ToString(), NotifyType.StatusMessage);
     });
 }