Example #1
0
        private void EmpCar_Load(object sender, EventArgs e)
        {
            if (employment == null)
            {
                //go get /employment/ and cast to the Employment object
                string jsonEmp = rj.getRESTDataJSON("/employment/");
                employment = JToken.Parse(jsonEmp).ToObject <Employment>();
            }

            #region Employer and Career names

            //Print out all of the employer names and career names
            title.Text = employment.employers.title;

            var builder1 = new StringBuilder();
            foreach (string eName in employment.employers.employerNames)
            {
                builder1.Append(eName);
                builder1.AppendLine();
            }
            emp_names.Text = builder1.ToString();

            title2.Text = employment.careers.title;

            var builder2 = new StringBuilder();
            foreach (string cName in employment.careers.careerNames)
            {
                builder2.Append(cName);
                builder2.AppendLine();
            }
            car.Text = builder2.ToString();

            #endregion Employer and Career Names
        }
Example #2
0
        private void DegStat_Load(object sender, EventArgs e)
        {
            if (employment == null)
            {
                //go get /employment/ and cast to the Employment object
                string jsonEmp = rj.getRESTDataJSON("/employment/");
                employment = JToken.Parse(jsonEmp).ToObject <Employment>();
            }



            //Title
            deg_title.Text = employment.degreeStatistics.title;

            /*for (int i = 0; i < employment.degreeStatistics.statistics.Count; i++)
             * {
             *
             *  StringBuilder statBuild = new StringBuilder();
             *  statBuild.Append(employment.degreeStatistics.statistics[0].value);
             *  statBuild.AppendLine();
             *  statBuild.Append(employment.degreeStatistics.statistics[0].description);
             *  statBuild.AppendLine();
             *  statBuild.AppendLine();
             *  statBuild.Append(employment.degreeStatistics.statistics[1].value);
             *  statBuild.AppendLine();
             *  statBuild.Append(employment.degreeStatistics.statistics[1].description);
             *  statBuild.AppendLine();
             *  statBuild.AppendLine();
             *  statBuild.Append(employment.degreeStatistics.statistics[2].value);
             *  statBuild.AppendLine();
             *  statBuild.Append(employment.degreeStatistics.statistics[2].description);
             *  statBuild.AppendLine();
             *  statBuild.AppendLine();
             *  statBuild.Append(employment.degreeStatistics.statistics[3].value);
             *  statBuild.AppendLine();
             *  statBuild.Append(employment.degreeStatistics.statistics[3].description);
             *  textBox1.Text = statBuild.ToString();
             * }*/

            //Getting the degree statistics
            value1.Text = employment.degreeStatistics.statistics[0].value;
            desc1.Text  = employment.degreeStatistics.statistics[0].description;
            value2.Text = employment.degreeStatistics.statistics[1].value;
            desc2.Text  = employment.degreeStatistics.statistics[1].description;
            value3.Text = employment.degreeStatistics.statistics[2].value + "%";
            desc3.Text  = employment.degreeStatistics.statistics[2].description;
            value4.Text = employment.degreeStatistics.statistics[3].value;
            desc4.Text  = employment.degreeStatistics.statistics[3].description;
        }
Example #3
0
        private void EmpTables_Load(object sender, EventArgs e)
        {
            //if i haven't loaded employment yet - get employment
            if (employment == null)
            {
                //go get /employment/ and cast to the Employment object
                string jsonEmp = rj.getRESTDataJSON("/employment/");
                employment = JToken.Parse(jsonEmp).ToObject <Employment>();
            }

            var sb = new StringBuilder();

            foreach (string eName in employment.employers.employerNames)
            {
                sb.Append(eName);
                sb.AppendLine();
            }

            //add the title
            coop_title.Text = employment.coopTable.title;

            //create the data grid view contents!
            for (int i = 0; i < employment.coopTable.coopInformation.Count; i++)
            {
                //build a row, add it
                dg_coopTable.Rows.Add();
                //add things to the row
                dg_coopTable.Rows[i].Cells[0].Value = employment.coopTable.coopInformation[i].employer;
                dg_coopTable.Rows[i].Cells[1].Value = employment.coopTable.coopInformation[i].degree;
                dg_coopTable.Rows[i].Cells[2].Value = employment.coopTable.coopInformation[i].city;
                dg_coopTable.Rows[i].Cells[3].Value = employment.coopTable.coopInformation[i].term;
            }

            //add the title
            emp_title.Text = employment.employmentTable.title;

            for (int i = 0; i < employment.employmentTable.professionalEmploymentInformation.Count; i++)
            {
                //build a row, add it
                dg_empTable.Rows.Add();
                //add things to the row
                dg_empTable.Rows[i].Cells[0].Value = employment.employmentTable.professionalEmploymentInformation[i].employer;
                dg_empTable.Rows[i].Cells[1].Value = employment.employmentTable.professionalEmploymentInformation[i].degree;
                dg_empTable.Rows[i].Cells[2].Value = employment.employmentTable.professionalEmploymentInformation[i].city;
                dg_empTable.Rows[i].Cells[3].Value = employment.employmentTable.professionalEmploymentInformation[i].title;
                dg_empTable.Rows[i].Cells[4].Value = employment.employmentTable.professionalEmploymentInformation[i].startDate;
            }
        }
        private void tp_emp_Enter(object sender, EventArgs e)
        {
            //if i haven't loaded employment yet - get employment
            if (employment == null)
            {
                //go get /employment/ and cast to the Employment object
                string jsonEmp = rj.getRESTDataJSON("/employment/");
                employment = JToken.Parse(jsonEmp).ToObject <Employment>();
            }

            //Print out the introduction information
            emp_intro_title.Text = employment.introduction.title;
            title1.Text          = employment.introduction.content[0].title;
            desc1.Text           = employment.introduction.content[0].description;
            title2.Text          = employment.introduction.content[1].title;
            desc2.Text           = employment.introduction.content[1].description;
        }