Example #1
0
        void Button1Click(object sender, EventArgs e)
        {
            simpanDataSoal simpan = new simpanDataSoal();

            tabel = simpan.updateSoal(id_soal, soalPertanyaan.Text.ToString(), jwb_a.Text.ToString(), jwb_b.Text.ToString(), jwb_c.Text.ToString(), jwb_d.Text.ToString(), cmbKunci.Text.ToString());
            MessageBox.Show("Data berhasil diperbaharui");
            this.Close();
        }
        void BtnTmbhClick(object sender, EventArgs e)
        {
            simpanDataSoal simpan = new simpanDataSoal();

            tabel = simpan.simpanSoal(no_soal, id_matpel, id_kat, inSoal.Text.ToString(), jwbA.Text.ToString(), jwbB.Text.ToString(), jwbC.Text.ToString(), jwbD.Text.ToString(), kunci.Text.ToLower());
            MessageBox.Show("Soal berhasil disimpan");
            inSoal.Text = "";
            jwbA.Text   = "";
            jwbB.Text   = "";
            jwbC.Text   = "";
            jwbD.Text   = "";
            kunci.Text  = "";
        }