Example #1
0
        private void EditSchoolForm_Load(object sender, EventArgs e)
        {
            School t = CoursesRequests.GetSchool(EditId);

            if (t == null)
            {
                Close();
            }
            else
            {
                nameBox.Text = t.Name;
            }
        }
Example #2
0
 public InfoSchool(Form pparentForm, int schoolId)
 {
     InitializeComponent();
     parentForm = pparentForm;
     School     = CoursesRequests.GetSchool(schoolId);
 }