Exemplo n.º 1
0
        public MultiGradeTabControl(School school)
        {
            foreach (Grade grade in school)
            {
                GradeTabPage page = new GradeTabPage(grade);
                page.GpaUpdated += OnGpaUpdated;
                TabPages.Add(page);
                if (school.SelectedGrade == grade)
                    SelectedTab = page;
            }

            _school = school;
        }
Exemplo n.º 2
0
 public MultiGradeTabControl(School school)
 {
     _school = school;
     foreach (Grade grade in school)
     {
         GradeTabPage page = new GradeTabPage(grade);
         page.GpaUpdated += OnGpaUpdated;
         TabPages.Add(page);
         if (school.SelectedGrade == grade)
         {
             SelectedTab = page;
         }
     }
 }