Example #1
0
 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;
 }
Example #2
0
 public HoursChart(Models.Worker teamHead)
 {
     InitializeComponent();
     cmb_projects.DataSource    = ProjectRequests.GetAllProjectsByTeamHead(teamHead.WorkerId);
     cmb_projects.DisplayMember = "ProjectName";
 }