public void AddToCollection() { for (int i = 0; i < 6; i++) { collection[i] = new ManagerType(); collection[i].Type = coll[i]; } }
public void IsYourType(string typeManager) { _tpy = new ManagerType(); ManagerType[] arr = ManagerTypeCol.collection; foreach (ManagerType i in arr) { if (typeManager == i.Type) { _tpy = i; } } }