Esempio n. 1
0
    public void ShowCollege(MyCollegeData data)
    {
        departments.text      = "";
        this.programs.text    = "";
        this.collegeName.text = data.college_name;

        if (data.college_name == "College of Education")
        {
            departments.text += "Department of Elementary Education \nDepartment of Secondary Education";
        }
        else if (data.college_name == "College of Engineering and Computer Studies")
        {
            departments.text += "Department of Engineering \nDepartment of Computer Studies";
        }
        else if (data.college_name == "College of Business and Accountancy")
        {
            departments.text += "Department of Business Administration \nDepartment of Accountancy";
        }

        foreach (MyProgramData program in data.programs)
        {
            programs.text += program.program_name + "-" + program.program_years + "\n";
        }
        this.vision.text  = data.vision;
        this.mission.text = data.mission;
        this.goal.text    = data.goal;
        SetScrollRectToTop();
        ShowScrollRect();
        controls.Hide();
    }
Esempio n. 2
0
 public void Setup(MyCollegeData data)
 {
     this.myData           = data;
     this.collegeName.text = data.college_name;
 }