示例#1
0
        private void btnSubmit_Click(object sender, EventArgs e)
        {
            controller.SaveAbsentsAndPeriod(clbStudents, schoolClass, int.Parse(txtbPeriodNumber.Text));


            try
            {
                MessageBox.Show("System successfully saved attendance");

                controller.FormClosing(this);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }