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

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