Пример #1
0
 // Connect to printer
 private void Connect(ReqPkt pkt)
 {
     Disconnect(pkt);
     ijp = new IJP()
     {
         IPAddress = pkt.IpAddress,
         Timeout   = pkt.TimeOut,
         Retry     = pkt.Retries
     };
     ijp.Connect();
     ComOn = ijp.GetComPort();
     // Be sure com is on
     if (ComOn == IJPOnlineStatus.Offline)
     {
         ijp.SetComPort(IJPOnlineStatus.Online);
         ComOn = IJPOnlineStatus.Online;
     }
 }