public int AddPart(PartConroller[] parts, PartConroller part, int numb) { parts [numb] = part; numb++; return numb; }
public int DeletePart(PartConroller[] parts, int del, int numb) { for (int i=del+1;i<numb;i++) parts[i-1]=parts[i]; numb--; return numb; }