Пример #1
0
        private ItemPattern setValorItemPatern(XmlAttributeCollection atributos)
        {
            ItemPattern itemPat = new ItemPattern();

            itemPat.setValuesByAttribute(atributos);
            return(itemPat);
        }
Пример #2
0
        private ItemPattern generaItemPattern(XmlNode node)
        {
            ItemPattern itemPat = this.generaItemPatern(node.Attributes);

            itemPat.valuesDefault = this.setValuesDefault(node);
            return(itemPat);
        }
Пример #3
0
        // tipo 1= header , 2= body, 3, footer
        private ArrayList generaColItemPatternOfStr(string strArc, int tipo, int tipoDefa)
        {
            ArrayList coll = colBody;
            // Warning!!! Optional parameters not supported
            ArrayList newColIt = new ArrayList();

            switch (tipo)
            {
            case 1:
                if ((colHeader.Count > 0))
                {
                    coll = colHeader;
                }

                break;

            case 2:
                if ((colHeader2.Count > 0))
                {
                    coll = colHeader2;
                }

                break;

            case 3:
                if ((colBody.Count > 0))
                {
                    coll = colBody;
                }

                break;

            case 4:
                if ((colFooter.Count > 0))
                {
                    coll = colFooter;
                }

                break;
            }
            foreach (ItemPattern itPat in coll)
            {
                ItemPattern newItPat = itPat.Clone();
                try
                {
                    newItPat.value = strArc.Substring(Int32.Parse(newItPat.position), Int32.Parse(newItPat.size));
                }
                catch (Exception e)
                {
                }

                newColIt.Add(newItPat);
            }

            return(newColIt);
        }
Пример #4
0
        public ItemPattern Clone()
        {
            ItemPattern newItemPattern = new ItemPattern();

            newItemPattern._name       = this._name;
            newItemPattern._type       = this._type;
            newItemPattern._size       = this._size;
            newItemPattern._position   = this._position;
            newItemPattern._align      = this._align;
            newItemPattern._fill       = this._fill;
            newItemPattern.colValues   = this.colValues;
            newItemPattern._value      = this._value;
            newItemPattern._window1252 = this._window1252;
            newItemPattern._trim       = this._trim;
            return(newItemPattern);
        }
Пример #5
0
 public ItemPattern Clone()
 {
     ItemPattern newItemPattern = new ItemPattern();
     newItemPattern._name = this._name;
     newItemPattern._type = this._type;
     newItemPattern._size = this._size;
     newItemPattern._position = this._position;
     newItemPattern._align = this._align;
     newItemPattern._fill = this._fill;
     newItemPattern.colValues = this.colValues;
     newItemPattern._value = this._value;
     newItemPattern._window1252 = this._window1252;
     newItemPattern._trim = this._trim;
     return newItemPattern;
 }
Пример #6
0
 private ItemPattern setValorItemPatern(XmlAttributeCollection atributos)
 {
     ItemPattern itemPat = new ItemPattern();
     itemPat.setValuesByAttribute(atributos);
     return itemPat;
 }