/// <summary> /// Load a peripheral device with Retry prompt. /// </summary> /// <param name="peripheralStringId"></param> /// <param name="perphiral"></param> private void LoadPeripheral(int peripheralStringId, IPeripheral perphiral) { bool retry; do { try { perphiral.Load(); retry = false; } catch (PosStartupException startupException) { // The Fiscal printer validates law requirements and it must be able to abort the POS startup. throw new PosStartupException(startupException.Message); } catch (Exception ex) { ApplicationExceptionHandler.HandleException(this.ToString(), ex); retry = PromptForRetry(peripheralStringId); } } while (retry); }