public ProjectState(User Teamhead) { InitializeComponent(); CurrentProjects = ProjectRequests.GetAllProjectsByTeamHead(Teamhead.UserId); cmb_workers.DataSource = CurrentProjects; cmb_workers.DisplayMember = "ProjectName"; chart1.Series[0].ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Pie; }
public HoursChart(Models.Worker teamHead) { InitializeComponent(); cmb_projects.DataSource = ProjectRequests.GetAllProjectsByTeamHead(teamHead.WorkerId); cmb_projects.DisplayMember = "ProjectName"; }