Пример #1
0
        public bool IsReady()
        {
            var isOk      = false;
            var isWasBusy = false;

            var status = PrintProvider.GetExtendedStatus(out isOk);

            if (isOk == false)
            {
                if (isWasBusy == false)
                {
                    if (status[ExtendedStatus.BusyPrinting] == true)
                    {
                        isWasBusy = true;
                    }
                }
            }
            if (isWasBusy && status[ExtendedStatus.BusyPrinting] == false &&
                status[ExtendedStatus.Ready] == true)
            {
                //Log("info: I was waiting for: " + (Environment.TickCount - start) + " ms. and got Busy state returned to Ready!");
                return(true);
            }


            return(false);
        }
Пример #2
0
 public void Setup()
 {
     PrintProvider.Setup(_ip, printPort);
 }
Пример #3
0
 public void Calibrate()
 {
     PrintProvider.Calibrate(_ip, printPort);
 }
Пример #4
0
 public Dictionary <string, object> RunQuery(string clause)
 {
     return(PrintProvider.RunQuery(clause, _ip, printPort));
 }
Пример #5
0
 public bool Print(byte[] bytes)
 {
     return(PrintProvider.Print(bytes, _ip, printPort));
 }