Ejemplo n.º 1
0
        private void EditTeacherForm_Load(object sender, EventArgs e)
        {
            Teacher t = CoursesRequests.GetTeacher(EditId);

            if (t == null)
            {
                Close();
            }
            else
            {
                nameBox.Text = t.Name;
            }
        }
Ejemplo n.º 2
0
        private void InfoTeacher_Load(object sender, EventArgs e)
        {
            Teacher teacher = CoursesRequests.GetTeacher(TeacherId);

            if (teacher == null)
            {
                Close();
            }
            else
            {
                nameLabel.Text = CoursesRequests.GetTeacher(TeacherId).Name;
                RefreshTab();
            }
            DisableButtons();
        }