Esempio n. 1
0
        private void Button1_Click(object sender, EventArgs e)
        {
            Guardian gg = new Guardian();

            this.Hide();
            gg.ShowDialog();
        }
        private void Button2_Click(object sender, EventArgs e)
        {
            DBConnections c = new DBConnections();

            c.Inserts("insert into student ([FirstName],[LastName],[Gender],[DateofBirth],[HomeAddress],[EmailAddress],[PhoneNumber],[EmergencyContactNumber],[BloodGroup],[Religion],[Nationality],[PrimaryLanguage],[BirthPlace]) " +
                      "Values('" + fname.Text + "', '" + lname.Text + "', '" + gender.Text + "', '" + Convert.ToDateTime(dob.Text) + "' ,'" + address.Text + "' , '" + email.Text + "','" + textBox1.Text + "','" + em.Text + "','" + blood.Text + "','" + religion.Text + "','" + nationality.Text + "','" + plang.Text + "','" + birthpl.Text + "')");
            Guardian gg = new Guardian();

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