Initial Commit.
New site in .NET 6 replacing .net framwk 4.8
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user