Example #1
0
 public Subject(eSubject ID)
 {
     this.ID = ID;
     Name = "";
     Score = -1;
     Color = Brushes.DarkRed;
     Duration = 0;
     Performance = "";
 }
 private void OpenSubjectTab(eSubject s)
 {
     AddTab(new PageSubjectAnalysis(profile,s.GetValue()),"Subject "+s,true);
 }
Example #3
0
        public eSubject[] GetSubjects()
        {
            int start = (int)Type;
            int count = 0;
            if (Type == ProfileType.MBA_Student) count = MBASubject.COUNT;
            else if (Type == ProfileType.School_Student) count = SkSubject.COUNT;

            eSubject[] subs = new eSubject[count];
            for (int i = 0; i < count; i++)
            {
                int ind = start + i;
                subs[i] = (eSubject)ind;
            }

            return subs;
        }