VSERVERWS/AppCode/Global/Global_Classes.cs
Cameron Taylor 6bc14b88c9 Initial Commit.
New site in .NET 6 replacing .net framwk 4.8
2022-07-27 16:02:36 -04:00

35 lines
884 B
C#

using CVRLIB.Printing;
namespace VSERVERWS.Global {
public static class Globals {
public static CVRPRINTER_MF264dw? CVP_MF264dw = null;
public static CVRPRINTER_MFC_L8900CDW? CVP_MFC_L8900CDW = null;
public static bool IsDevelopment = false;
public static void LoadPrinters() {
if (IsDevelopment) {
CVP_MF264dw = new CVRPRINTER_MF264dw("10.10.20.147", CVRPRINTER.PrinterStatusSource.VSERVERWS);
CVP_MFC_L8900CDW = new CVRPRINTER_MFC_L8900CDW("10.10.20.111", CVRPRINTER.PrinterStatusSource.VSERVERWS);
} else {
CVP_MF264dw = new CVRPRINTER_MF264dw("10.10.20.147", CVRPRINTER.PrinterStatusSource.Printer);
CVP_MFC_L8900CDW = new CVRPRINTER_MFC_L8900CDW("10.10.20.111", CVRPRINTER.PrinterStatusSource.Printer);
}
}
}
}