Rock.Apps.CheckScannerUtility.ScanningPage.Page_Loaded C# (CSharp) Méthode

Page_Loaded() private méthode

Handles the Loaded event of the Page control.
private Page_Loaded ( object sender, RoutedEventArgs e ) : void
sender object The source of the event.
e System.Windows.RoutedEventArgs The instance containing the event data.
Résultat void
        private void Page_Loaded( object sender, RoutedEventArgs e )
        {
            // set the uploadScannedItemClient to null and reconnect to ensure we have a fresh connection (just in case they changed the url, or if the connection died for some other reason)
            _uploadScannedItemClient = null;
            EnsureUploadScanRestClient();

            ShowStartupPage();
            _itemsUploaded = 0;
            _itemsSkipped = 0;
            _itemsScanned = 0;
            ShowUploadStats();
            StartScanning();
            lblScanItemCountInfo.Visibility = Visibility.Collapsed;
        }