コード例 #1
0
        private void btnLogIn_Click(object sender, EventArgs e)
        {
            try
            {
                controller.SaveGrades();

                MessageBox.Show("System successfully saved grades");
                controller.FormClosing(this);
            }
            catch (AddException ex)
            {
                MessageBox.Show(ex.Message);
            }
        }