Пример #1
0
        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);
            }
        }
Пример #2
0
 private void btnPrint_Click(object sender, EventArgs e)
 {
     try
     {
         lc.CheckLabelTask();
         rc.CheckReportTask();
         cc.CheckCartTask();
     }
     catch (Exception ex)
     {
         ExceptionFrm.Show(ex);
     }
 }
Пример #3
0
 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);
     }
 }