示例#1
0
        private void Button2_Click(object sender, EventArgs e)
        {
            Sibling_and_Emergency_Information gg = new Sibling_and_Emergency_Information();

            this.Hide();
            gg.ShowDialog();
        }
示例#2
0
        private void Button1_Click_1(object sender, EventArgs e)
        {
            DBConnections c = new DBConnections();

            c.Inserts("insert into guardian (Student_idStudent, gname, gaddress, phonenumber, relationshipwithstudent, Cnic, office, education) " +
                      "Values((select max(idStudent) from student), '" + gname.Text + "', '" + address.Text + "', '" + phone.Text + "' ,'" + textBox1.Text + "' , '" + cnic.Text + "','" + office.Text + "','" + education.Text + "')");


            Sibling_and_Emergency_Information gg = new Sibling_and_Emergency_Information();

            this.Hide();
            gg.ShowDialog();
        }