35 lines
884 B
C#
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);
|
|
}
|
|
|
|
}
|
|
|
|
|
|
}
|
|
}
|