Exemple #1
0
        private void EditSubjectForm_Load(object sender, EventArgs e)
        {
            Subject t = CoursesRequests.GetSubject(EditId);

            if (t == null)
            {
                Close();
            }
            else
            {
                nameBox.Text = t.Name;
            }
        }
Exemple #2
0
 public InfoSubject(Form pparentForm, int subjectId)
 {
     InitializeComponent();
     parentForm = pparentForm;
     subject    = CoursesRequests.GetSubject(subjectId);
 }