Beispiel #1
0
        private void button1_Click_1(object sender, EventArgs e)
        {
            int yearSelect = int.Parse(dateTimePicker1.Value.ToString("yyyy"));

            if (yearC.addNewSy(yearSelect.ToString(), textBox1.Text.Trim()))
            {
                auditTrail.addAudit(label7.Text, "Add School Year");
                MessageBox.Show("Succesfully Added A new School Year");
            }

            yearC.fillDataGridSY(ref dgSY);
        }