Пример #1
0
 public AddLToSubject_Screen()
 {
     InitializeComponent();
     repos = new SubjectRepos();
     showLecturers();
     showSubjects();
     showLSView();
     showGroups();
 }
Пример #2
0
        public Lecturer_Screen(User user)
        {
            InitializeComponent();
            this.user = user;

            repos       = new UserRepos();
            sRepos      = new SubjectRepos();
            subjectList = sRepos.LecturerSubjectList(user.ID);
            groupList   = sRepos.LecturerGroup(user.ID);
            for (int i = 0; i < subjectList.Count; i++)
            {
                subjectBox.Items.Add(subjectList[i].Subjectname);
                aSubjectBox.Items.Add(subjectList[i].Subjectname);
            }
            for (int i = 0; i < groupList.Count; i++)
            {
                groupComboBox.Items.Add(groupList[i].GroupName);
                aGroupBox.Items.Add(groupList[i].GroupName);
            }
            showStudents();
        }
Пример #3
0
 public AddSubject_Screen()
 {
     InitializeComponent();
     showSubjects();
     repos = new SubjectRepos();
 }