/// <summary> /// Method, that creates an indexable EnterpriseList /// </summary> /// <returns>List<IndexableEnterprise></returns> private List <Enterprise> GetIndexableEnterpriseList() { List <Enterprise> result = new List <Enterprise>(); int i = 0; foreach (Enterprise enterprise in ProjectEnterpriseList) { IndexedEnterprise temp = new IndexedEnterprise(i, enterprise); result.Add(temp); i++; } return(result); }
/// <summary> /// Method, that creates an indexable EnterpriseList /// </summary> /// <returns>List<IndexableEnterprise></returns> private List <Enterprise> GetIndexableEnterpriseList() { List <Enterprise> result = new List <Enterprise>(); int i = 0; foreach (Enterprise enterprise in Bizz.EnterpriseList) { if (enterprise.Project.Id == Bizz.TempProject.Id) { IndexedEnterprise temp = new IndexedEnterprise(i, enterprise); result.Add(temp); i++; } } return(result); }
private List <Enterprise> GetIndexedEnterprises() { List <Enterprise> result = new List <Enterprise>(); EnterpriseIds.Clear(); int i = 0; foreach (Enterprise enterprise in CBZ.Enterprises) { if (enterprise.Project.Id == CBZ.TempProject.Id) { IndexedEnterprise temp = new IndexedEnterprise(i, enterprise); result.Add(temp); EnterpriseIds.Add(temp.Id); } i++; } return(result); }