Esempio n. 1
0
        //button for editing an activity
        private void btnEdit_Click(object sender, EventArgs e)
        {
            Activity activity = new Activity()
            {
                Id                  = ActivityID,
                ActivityName        = txtBoxDescription.Text,
                NumberofStudents    = int.Parse(txtBoxNStudents.Text),
                NumberofSupervisors = int.Parse(txtBoxNSupervisors.Text)
            };

            actService.EditActivity(activity);
            LoadActivities();
        }