Beispiel #1
0
 public override void Code(Epos2Printer printerObj, int code, Epos2PrinterStatusInfo status, string printJobId)
 {
     PrinterObj = printerObj;
     Codex      = code;
     Status     = status;
     PrintJobId = printJobId;
 }
Beispiel #2
0
        public override void ViewDidLoad()
        {
            //ObjCRuntime.Class.ThrowOnInitFailure = false;
            base.ViewDidLoad();
            var printer = new Epos2Printer();

            //var filter = new Epos2FilterOption()
            //{
            //    DeviceType = (int)Epos2DeviceType.Printer,
            //    PortType = (int)Epos2PortType.All,
            //    DeviceModel = (int)Epos2DeviceModel.Epos2ModelAll
            //};
            // Epos2Printer printer;
            // printer = new Epos2Printer(12, 0);
            //if (printer == null)
            //{
            //    throw new NotImplementedException();
            //}
            //reciveDelegate = new RecieveDelegate();
            //reciveDelegate.Code(printer, 0, printer.getStatus(), "2");
            //printer.SetReceiveEventDelegate(reciveDelegate);
            //printer.AddText("Hellowolrlds");
            //printer.Connect("TCP:192.168.100.20", 1000);
            //int a = printer.BeginTransaction();
            ////Epos2PrinterStatusInfo status = ;
            //Epos2PrinterStatusInfo status = printer.getStatus();
            //printer.SendData(1000);
            //Perform any additional setup after loading the view, typically from a nib.
        }
Beispiel #3
0
 public abstract void Code(Epos2Printer printerObj, int code, Epos2PrinterStatusInfo status, string printJobId);
Beispiel #4
0
 public abstract void EventType(Epos2Printer printerObj, int eventType);