public static PrinterDefinition GetFargoPrinter() { PrinterDefinition result = new PrinterDefinition { Name = "HDP5000 Card Printer", PageWidth = 220, PageHeight = 345, Landscape = true }; return(result); }
public static PrinterDefinition LoadJson ( [NotNull] string fileName ) { Sure.NotNullNorEmpty(fileName, nameof(fileName)); PrinterDefinition result = JsonUtility.ReadObjectFromFile <PrinterDefinition> ( fileName ); return(result); }