Ejemplo n.º 1
0
 private void PopulateViewer()
 {
     this.IsShowingFailingProjects = false;
     this._projectList             = EntityContentSelector.SelectProject();
     foreach (Project p in this._projectList)
     {
         this.ProjectList.Items.Add(p);
     }
 }
Ejemplo n.º 2
0
        private void PopulateFailingViewer()
        {
            this.IsShowingFailingProjects = true;
            this._projectList             = EntityContentSelector.SelectProject();
            var hqList = EntityContentSelector.SelectHeadquarters();

            foreach (Project p in this._projectList)
            {
                Headquarters hq = hqList.Where(h => h.BuildingName == p.BuildingName).ToList()[0];
                if (p.Budget * 0.10F < hq.Rent)
                {
                    this.ProjectList.Items.Add(p);
                }
            }
        }