private void Back_Click(object sender, EventArgs e)
        {
            ManageStudentGroups form = new ManageStudentGroups();

            this.Close();
            form.Show();
        }
Esempio n. 2
0
        private void ManageGroups_Click(object sender, EventArgs e)
        {
            ManageStudentGroups E7 = new ManageStudentGroups();

            E7.Show();
            this.Hide();
        }
        private void AddGroups_Click_1(object sender, EventArgs e)
        {
            SqlConnection con = new SqlConnection(conURL);

            con.Open();
            SqlCommand cmd1;
            string     group = "INSERT INTO [Group](Created_On) values(@Created_On)";

            cmd1 = new SqlCommand(group, con);
            cmd1.Parameters.AddWithValue("@Created_On", DateTime.Today);
            cmd1.ExecuteNonQuery();
            con.Close();
            MessageBox.Show(" Group Created");
            ManageStudentGroups form = new ManageStudentGroups();

            this.Close();
            form.Show();
        }