/// <summary> /// Rangers the scanner_ transport feeding stopped. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The e.</param> public void rangerScanner_TransportFeedingStopped(object sender, AxRANGERLib._DRangerEvents_TransportFeedingStoppedEvent e) { RangerFeedingStoppedReasons rangerFeedingStoppedReason = (RangerFeedingStoppedReasons)e.reason; System.Diagnostics.Debug.WriteLine(string.Format("{0} : rangerScanner_TransportFeedingStopped, reason:", DateTime.Now.ToString("o"), rangerFeedingStoppedReason.ConvertToString())); if (pnlPromptForUpload.Visibility != Visibility.Visible) { btnStart.IsEnabled = true; } btnClose.IsEnabled = true; if (pnlPromptForUpload.Visibility != Visibility.Visible) { btnStopScanning.IsEnabled = false; } if (_itemsScanned == 0) { // show the Startup Info "Welcome" message if no check images are shown yet if (lblFront.Visibility != Visibility.Visible) { lblStartupInfo.Visibility = Visibility.Visible; } // show a "No Items" warning if they clicked Start but it stopped because of MainHopperEmpty if (rangerFeedingStoppedReason == RangerFeedingStoppedReasons.MainHopperEmpty) { lblNoItemsFound.Visibility = Visibility.Visible; } } }
private void axRanger1_TransportFeedingStopped(object sender, AxRANGERLib._DRangerEvents_TransportFeedingStoppedEvent e) { if (e.reason == (int)FeedingStoppedReasons.MainHopperEmpty) { //save.IsEnabled = true; } }