public void run() //运行打印 { Printer printer = new Printer(); printer = new Printer(); bool initialized = false; while (!mStop) { if (!initialized) { initialized = printer.init(true); } else { m_Printer = printer.getPrinter(); } //System.Threading.Thread.Sleep(1000 * 60); printer.print(1); Stop(); } }
public void run() //运行打印 { // SQLiteHelper helper = new SQLiteHelper(); // Printer printer = new Printer(); //printer = new Printer(); bool initialized = false; while (!mStop) { if (!initialized) { initialized = printer.init(true); } else { m_Printer = printer.getPrinter(); //List<POS.Printer.Contract.Order> infoList = mSQLiteHelper.GetPrintedDatas(); //printer.print(infoList, 2); } System.Threading.Thread.Sleep(1000 * 60); } }