public static ITerminalPrinter GetTerminalPrinter() { if (lptHelper == null) { SystemConfig config = FT.Commons.Cache.StaticCacheManager.GetConfig <SystemConfig>(); if (config.PrinterType == "并口") { lptHelper = new FT.Commons.Tools.LPTHelper(); } else if (config.PrinterType == "串口") { lptHelper = new FT.Commons.Tools.SerialPortHelper(); } } return(lptHelper); }
public static ITerminalPrinter GetTerminalPrinter() { if (lptHelper == null) { SystemConfig config = FT.Commons.Cache.StaticCacheManager.GetConfig<SystemConfig>(); if(config.PrinterType=="并口") { lptHelper = new FT.Commons.Tools.LPTHelper(); } else if (config.PrinterType == "串口") { lptHelper = new FT.Commons.Tools.SerialPortHelper(); } } return lptHelper; }