예제 #1
0
        public static PrinterDefinition GetFargoPrinter()
        {
            PrinterDefinition result = new PrinterDefinition
            {
                Name       = "HDP5000 Card Printer",
                PageWidth  = 220,
                PageHeight = 345,
                Landscape  = true
            };

            return(result);
        }
예제 #2
0
        public static PrinterDefinition LoadJson
        (
            [NotNull] string fileName
        )
        {
            Sure.NotNullNorEmpty(fileName, nameof(fileName));

            PrinterDefinition result = JsonUtility.ReadObjectFromFile <PrinterDefinition>
                                       (
                fileName
                                       );

            return(result);
        }