Exemplo n.º 1
0
        }//end of onclick

        void studentServices_Click(Object obj, EventArgs e)
        {
            // get About information
            string jsonAbout = getRestData("/resources/");

            // need a way to get the JSON form into a Resources object
            Resources std = JToken.Parse(jsonAbout).ToObject <Resources>();
            resources res = new resources();
            Label     l   = new Label();

            l.AutoSize = true;
            //l.Width = res.resourcePanel.Width;
            //l.Height = res.resourcePanel.Height;
            //adding student services detials
            l.TextAlign = ContentAlignment.TopLeft;
            l.Text      = std.studentServices.title + "\n\n" + std.studentServices.academicAdvisors.title + "\n" + std.studentServices.academicAdvisors.description + "\n\n";
            l.Text     += std.studentServices.academicAdvisors.faq.title + ": " + std.studentServices.academicAdvisors.faq.contentHref + "\n\n\n";
            l.Text     += std.studentServices.professonalAdvisors.title;
            l.Text     += "\n\n" + std.studentServices.professonalAdvisors.advisorInformation[0].name + "\n" + std.studentServices.professonalAdvisors.advisorInformation[0].department + "\n" + std.studentServices.professonalAdvisors.advisorInformation[0].email + "\n\n";
            l.Text     += std.studentServices.professonalAdvisors.advisorInformation[1].name + "\n" + std.studentServices.professonalAdvisors.advisorInformation[1].department + "\n" + std.studentServices.professonalAdvisors.advisorInformation[1].email + "\n\n";
            l.Text     += std.studentServices.professonalAdvisors.advisorInformation[2].name + "\n" + std.studentServices.professonalAdvisors.advisorInformation[2].department + "\n" + std.studentServices.professonalAdvisors.advisorInformation[2].email + "\n\n";
            l.Text     += std.studentServices.facultyAdvisors.title + "\n" + std.studentServices.facultyAdvisors.description + "\n\n";
            //for(int i=0; i< std.studentServices.facultyAdvisors+)
            res.resourcePanel.Controls.Add(l);
            res.ShowDialog();
        }//end of onclick
Exemplo n.º 2
0
        }//end of onlcick

        void formsRit_Click(Object obj, EventArgs e)
        {
            // get About information
            string jsonAbout = getRestData("/resources/");

            // need a way to get the JSON form into a Resources object
            Resources std = JToken.Parse(jsonAbout).ToObject <Resources>();
            resources res = new resources();
            //adding lable for graduate forms
            Label l = new Label();

            l.AutoSize  = true;
            l.TextAlign = ContentAlignment.TopLeft;
            l.Text      = "Graduate Forms\n\n";
            //add the label to the form
            res.resourcePanel.Controls.Add(l);
            //adding all the graduate form links to the displayed form names in a loop
            for (int i = 0; i < std.forms.graduateForms.Count(); i++)
            {
                LinkLabel ll = new LinkLabel();
                ll.Location = new Point(125, i * 30);
                ll.AutoSize = true;
                ll.Text     = std.forms.graduateForms[i].formName + "\n";
                ll.Links.Add(0, ll.Text.Count(), "www.ist.rit.edu/" + std.forms.graduateForms[i].href);
                ll.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.link_LinkClicked);
                res.resourcePanel.Controls.Add(ll);
            }
            //adding lable for undergraduate forms
            Label ugl = new Label();

            ugl.AutoSize  = true;
            ugl.TextAlign = ContentAlignment.TopLeft;
            ugl.Text      = "UnderGraduate Forms\n\n";
            ugl.Location  = new Point(0, 8 * 30);
            //add the label to the form
            res.resourcePanel.Controls.Add(ugl);
            //adding all the undergraduate form links to the displayed form names in a loop
            for (int i = 0; i < std.forms.undergraduateForms.Count(); i++)
            {
                LinkLabel ll = new LinkLabel();
                ll.Location = new Point(125, i + 8 * 30);
                ll.AutoSize = true;
                ll.Text     = std.forms.undergraduateForms[i].formName + "\n";
                ll.Links.Add(0, ll.Text.Count(), "www.ist.rit.edu/" + std.forms.undergraduateForms[i].href);
                ll.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.link_LinkClicked);
                res.resourcePanel.Controls.Add(ll);
            }
            //showing the form to display on click
            res.ShowDialog();
        }//end of onclick
Exemplo n.º 3
0
        }//end of onclick

        void tutorsAndLabInformation_Click(Object obj, EventArgs e)
        {
            // get About information
            string jsonAbout = getRestData("/resources/");

            // need a way to get the JSON form into a Resources object
            Resources std = JToken.Parse(jsonAbout).ToObject <Resources>();
            resources res = new resources();
            Label     l   = new Label();

            l.AutoSize = true;
            //l.Width = res.resourcePanel.Width;
            //l.Height = res.resourcePanel.Height;
            l.TextAlign = ContentAlignment.TopLeft;
            l.Text      = std.tutorsAndLabInformation.title + "\n\n" + std.tutorsAndLabInformation.description + "\n\n" + std.tutorsAndLabInformation.tutoringLabHoursLink + "\n\n";
            res.resourcePanel.Controls.Add(l);
            res.ShowDialog();
        }//end of onclick
Exemplo n.º 4
0
        }//end of resources

        void studyAbroad_Click(Object obj, EventArgs e)
        {
            // get About information
            string jsonAbout = getRestData("/resources/");

            // need a way to get the JSON form into a Resources object
            Resources std = JToken.Parse(jsonAbout).ToObject <Resources>();
            resources res = new resources();
            Label     l   = new Label();

            //l.AutoSize = true;
            //adding study detials
            l.Width     = res.resourcePanel.Width;
            l.Height    = res.resourcePanel.Height;
            l.TextAlign = ContentAlignment.MiddleCenter;
            l.Text      = std.studyAbroad.title + "\n\n" + std.studyAbroad.description + "\n\n\n" + std.studyAbroad.places[0].nameOfPlace + ": " + std.studyAbroad.places[0].description + "\n\n\n";
            l.Text     += std.studyAbroad.places[1].nameOfPlace + ": " + std.studyAbroad.places[1].description + "\n";
            res.resourcePanel.Controls.Add(l);
            res.ShowDialog();
        }//end of onclick
Exemplo n.º 5
0
        }//end of onclick

        void studentAmbassadors_Click(Object obj, EventArgs e)
        {
            // get About information
            string jsonAbout = getRestData("/resources/");

            // need a way to get the JSON form into a Resources object
            Resources std = JToken.Parse(jsonAbout).ToObject <Resources>();
            resources res = new resources();
            Label     l   = new Label();

            l.AutoSize = true;
            //l.Width = res.resourcePanel.Width;
            //l.Height = res.resourcePanel.Height;
            l.TextAlign = ContentAlignment.TopLeft;
            l.Text      = std.studentAmbassadors.title + "\n\n";
            for (int i = 0; i < std.studentAmbassadors.subSectionContent.Count(); i++)
            {
                l.Text += "\n" + std.studentAmbassadors.subSectionContent[i].title + "\n" + std.studentAmbassadors.subSectionContent[i].description + "\n\n";
            }
            l.Text += "\n\n\nLink: " + std.studentAmbassadors.applicationFormLink + "\n" + std.studentAmbassadors.note;
            res.resourcePanel.Controls.Add(l);
            res.ShowDialog();
        }//end of onlcick
Exemplo n.º 6
0
        }//end of onclick

        void coopEnrollment_Click(Object obj, EventArgs e)
        {
            // get About information
            string jsonAbout = getRestData("/resources/");

            // need a way to get the JSON form into a Resources object
            Resources std = JToken.Parse(jsonAbout).ToObject <Resources>();
            resources res = new resources();
            Label     l   = new Label();

            l.AutoSize = true;
            //l.Width = res.resourcePanel.Width;
            //l.Height = res.resourcePanel.Height;
            l.TextAlign = ContentAlignment.TopLeft;
            l.Text      = std.coopEnrollment.title + "\n\n";
            //adding table
            for (int i = 0; i < std.coopEnrollment.enrollmentInformationContent.Count(); i++)
            {
                l.Text += std.coopEnrollment.enrollmentInformationContent[i].title + "\n " + std.coopEnrollment.enrollmentInformationContent[i].description + "\n\n";
            }
            l.Text += std.coopEnrollment.RITJobZoneGuidelink;
            res.resourcePanel.Controls.Add(l);
            res.ShowDialog();
        }//end of onclick