ReportPrinters.cs 407 B

1234567891011121314151617
  1. using System.Collections.Generic;
  2. namespace InABox.Reports.Common
  3. {
  4. public static class ReportPrinters
  5. {
  6. private static readonly List<string> _printers = new();
  7. public static string[] All => _printers.ToArray();
  8. public static void Register(string printer)
  9. {
  10. if (!_printers.Contains(printer))
  11. _printers.Add(printer);
  12. }
  13. }
  14. }