public ProjectAddWindow( ) { InitializeComponent(); this._hqList = EntityContentSelector.SelectHeadquarters( ); foreach (Headquarters hq in this._hqList) { this.HeadquarterBox.Items.Add($"{hq.BuildingName}"); } }
public EmployeeAdder( ) { InitializeComponent(); this._windowText = "Add a new Employee"; this._headquartersList = EntityContentSelector.SelectHeadquarters( ); foreach (Headquarters hq in this._headquartersList) { this.MainHeadquarters.Items.Add($"{hq.PostalCode},\t{hq.BuildingName}"); } }
public EmployeeEditor(Employee employee) { InitializeComponent(); this._employee = employee; this.Header.Content = $"Employee: {this._employee.Name} {this._employee.Surname}, BSN: {this._employee.Bsn}"; this._headquartersList = EntityContentSelector.SelectHeadquarters( ); foreach (Headquarters hq in this._headquartersList) { this.HeadquarterList.Items.Add($"{hq.PostalCode},\t{hq.BuildingName}"); } this.ResetFields(this, new RoutedEventArgs()); }
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); } } }
public ProjectEditWindow(Project project) { InitializeComponent(); this._project = project; this._hqList = EntityContentSelector.SelectHeadquarters( ); this.Header.Content = $"Project: {this._project.ProjectId}"; foreach (Headquarters hq in this._hqList) { this.Headquarters.Items.Add(hq.BuildingName); } this.SetData(); }