Beispiel #1
0
        private void btn_edit_Click(object sender, EventArgs e)
        {
            var baris = dgv_data_rak.CurrentRow.Index;

            string[] data = rak.get_rak(dgv_data_rak.Rows[baris].Cells[0].Value.ToString());

            rak_buku_form rb_form = new rak_buku_form(this);

            rb_form.label_header.Text  = "Edit Rak Buku";
            rb_form.btn_tambah.Visible = false;
            rb_form.btn_update.Visible = true;
            rb_form.txt_id.ReadOnly    = true;
            rb_form.txt_id.Text        = data[0];
            rb_form.txt_kategori.Text  = data[1];
            rb_form.ShowDialog();
        }
Beispiel #2
0
        private void btn_tambah_Click(object sender, EventArgs e)
        {
            rak_buku_form rb_form = new rak_buku_form(this);

            rb_form.ShowDialog();
        }