Ejemplo n.º 1
0
        public bool IsBarcodeMatched(object fileobj, string barcode)
        {
            Minami_PrinterData data = fileobj as Minami_PrinterData;

            if (data.Barcode == barcode)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Ejemplo n.º 2
0
        public object Parse(string filepath)
        {
            Minami_PrinterData ret = new Minami_PrinterData();

            try
            {
                XElement Minami = XElement.Load(filepath);
                ret.ModelName      = Minami.getValue("ModelName");
                ret.PrintTime      = Minami.getValue("PrintTime");
                ret.SN             = Minami.getValue("SN");
                ret.Barcode        = Minami.getValue("Barcode");
                ret.PrintDirection = Minami.getValue("Direction");


                string sCol = Minami.getAttributeValue("Space", "Column");
                string sRow = Minami.getAttributeValue("Space", "Row");
                int    iCol;
                int    iRow;
                int.TryParse(sCol, out iCol);
                ret.Column = iCol;
                int.TryParse(sRow, out iRow);
                ret.Row = iRow;
                string sST = Minami.getValue("StencilThickness");
                double dST;
                Double.TryParse(sST, out dST);
                ret.StencilThickness = dST;
            }
            catch (Exception exception)
            {
                Log4.PrinterLogger.ErrorFormat("Minami Printer Data Pasre Exception: {0}", filepath);
                Log4.PrinterLogger.ErrorFormat("Message: {0}", exception.Message);
                return(null);
            }

            return(ret);
        }
Ejemplo n.º 3
0
        public override object Match(InspectedPanel currentPanel)
        {
            Minami_PrinterData tmpTool = new Minami_PrinterData();

            return((Minami_PrinterData)Match(currentPanel, (IParser)tmpTool, WatchedFolder));
        }