Exemple #1
0
        private void CoopTablePopupp_Load(object sender, EventArgs e)
        {
            var cooptablestring = _rest.getRestData("/employment");

            _employments = JToken.Parse(cooptablestring).ToObject <Employments>();
            coopTableDataGridView.Columns[0].Width = 300;
            coopTableDataGridView.Columns[1].Width = 200;
            coopTableDataGridView.Columns[2].Width = 200;
            coopTableDataGridView.Columns[3].Width = 100;
            for (int i = 0; i < _employments.CoopTable.CoopInformation.Count; i++)
            {
                coopTableDataGridView.Rows.Add();

                coopTableDataGridView.Rows[i].Cells[0].Value = _employments.CoopTable.CoopInformation[i].Employer;
                coopTableDataGridView.Rows[i].Cells[1].Value = _employments.CoopTable.CoopInformation[i].Degree;
                coopTableDataGridView.Rows[i].Cells[2].Value = _employments.CoopTable.CoopInformation[i].City;
                coopTableDataGridView.Rows[i].Cells[3].Value = _employments.CoopTable.CoopInformation[i].Term;
            }
        }
        private void EmpTablePopup_Load(object sender, EventArgs e)
        {
            var cooptablestring = _rest.getRestData("/employment");

            _employments = JToken.Parse(cooptablestring).ToObject <Employments>();
            empPopupDGV.Columns[0].Width = 300;
            empPopupDGV.Columns[1].Width = 200;
            empPopupDGV.Columns[2].Width = 200;
            empPopupDGV.Columns[3].Width = 100;
            for (int i = 0; i < _employments.EmploymentTable.ProfessionalEmploymentInformation.Count; i++)
            {
                empPopupDGV.Rows.Add();

                empPopupDGV.Rows[i].Cells[0].Value =
                    _employments.EmploymentTable.ProfessionalEmploymentInformation[i].Employer;
                empPopupDGV.Rows[i].Cells[1].Value = _employments.EmploymentTable.ProfessionalEmploymentInformation[i].Degree;
                empPopupDGV.Rows[i].Cells[2].Value = _employments.EmploymentTable.ProfessionalEmploymentInformation[i].City;
                empPopupDGV.Rows[i].Cells[3].Value = _employments.EmploymentTable.ProfessionalEmploymentInformation[i].Title;
                empPopupDGV.Rows[i].Cells[3].Value = _employments.EmploymentTable.ProfessionalEmploymentInformation[i].StartDate;
            }
        }