private void btnScan_Click( object sender, RoutedEventArgs e )
{
var rockConfig = RockConfig.Load();
// make sure we can connect (
// NOTE: If ranger is powered down after the app starts, it might report that is is connected. We'll catch that later when they actually start scanning
if ( ConnectToScanner() )
{
this.NavigationService.Navigate( this.ScanningPromptPage );
}
else
{
MessageBox.Show( string.Format( "Unable to connect to {0} scanner. Verify that the scanner is turned on and plugged in", rockConfig.ScannerInterfaceType.ConvertToString().SplitCase() ) );
}
}