public void moveFieldUp(int Index) { if (Index <= 0) { return; } ComigField t = field[Index - 1]; field[Index - 1] = field[Index]; field[Index] = t; }
public void moveFieldDown(int Index) { if (Index >= fieldCount - 1) { return; } ComigField t = field[Index + 1]; field[Index + 1] = field[Index]; field[Index] = t; }
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; }
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); }