private void timer1_Tick(object sender, EventArgs e) { try { lc.CheckLabelTask(); } catch (Exception ex) { ExceptionFrm.Show(ex); } try { rc.CheckReportTask(); } catch (Exception ex) { ExceptionFrm.Show(ex); } try { cc.CheckCartTask(); } catch (Exception ex) { ExceptionFrm.Show(ex); } }
private void btnPrint_Click(object sender, EventArgs e) { try { lc.CheckLabelTask(); rc.CheckReportTask(); cc.CheckCartTask(); } catch (Exception ex) { ExceptionFrm.Show(ex); } }
private void btnTest_Click(object sender, EventArgs e) { try { ITaskLoader ptm = TaskLoaderFactory.getInstance(); Task task = ptm.loadTask(); if (task == null) { return; } PrintCenter pc = new PrintCenter(); pc.DoPrint(task); } catch (Exception ex) { ExceptionFrm.Show(ex); } }