Esempio n. 1
0
        public void Add2(byte cur, ushort ind)
        {
            if (ind == 0)
            {
                code = (CODE_FIELD)cur;
            }

            int iAction = -2;

            switch (code)
            {
            case CODE_FIELD.CR:
                iAction = IsEnteteCR(cur, ind);
                break;

            case CODE_FIELD.US:
                iAction = IsEnteteUS(cur, ind);
                break;

            case CODE_FIELD.EM:
                iAction = IsEnteteEM(cur, ind);
                break;

            case CODE_FIELD.ESC:
                iAction = IsEnteteESC(cur, ind);
                break;

            case CODE_FIELD.SO:
                iAction = IsEnteteSO(cur, ind);
                break;

            case CODE_FIELD.DC1:
            case CODE_FIELD.DC2:
            case CODE_FIELD.DC3:
            case CODE_FIELD.DC4:
                iAction = IsEnteteDC(cur, ind);
                break;
            }

            if (iAction == -1)
            {
                Before.Add(cur);
            }
            else
            {
                if (cur > (byte)CODE_FIELD.SI && cur < (byte)CODE_FIELD.DEL)
                {
                    Text += (char)cur;
                }
                else
                if ((Text != null) && (Text.Length > 0))
                {
                    After.Add(cur);
                }
                else
                {
                    Before.Add(cur);
                }
            }
        }
Esempio n. 2
0
 public void Cursofr(int p1, CODE_FIELD cODE_FIELD1, int p2, int p3, int p4, CODE_FIELD cODE_FIELD2)
 {
     throw new NotImplementedException();
 }