Пример #1
0
        public void moveFieldUp(int Index)
        {
            if (Index <= 0)
            {
                return;
            }

            ComigField t = field[Index - 1];

            field[Index - 1] = field[Index];
            field[Index]     = t;
        }
Пример #2
0
        public void moveFieldDown(int Index)
        {
            if (Index >= fieldCount - 1)
            {
                return;
            }

            ComigField t = field[Index + 1];

            field[Index + 1] = field[Index];
            field[Index]     = t;
        }
Пример #3
0
        public bool addField(string Name, ComigField.TYPE Type)
        {
            if (Name.Trim().Length <= 0) return false;

            for (int n = 0; n < fieldCount; n++)
            {
                if (field[n].name == Name) return false;
            }

            field[fieldCount]		= new ComigField();
            field[fieldCount].name	= Name;
            field[fieldCount].table	= name;
            field[fieldCount].type	= Type;
            fieldCount++;

            return true;
        }
Пример #4
0
        public bool addField(string Name, ComigField.TYPE Type)
        {
            if (Name.Trim().Length <= 0)
            {
                return(false);
            }

            for (int n = 0; n < fieldCount; n++)
            {
                if (field[n].name == Name)
                {
                    return(false);
                }
            }

            field[fieldCount]       = new ComigField();
            field[fieldCount].name  = Name;
            field[fieldCount].table = name;
            field[fieldCount].type  = Type;
            fieldCount++;

            return(true);
        }