private void button1_Click(object sender, EventArgs e) { button = "update"; //loaithuoc = dg_thuoc.Rows[dg_thuoc.CurrentRow.Index].Cells[1].Value.ToString(); frm_insert_khachhang f = new frm_insert_khachhang(this); f.ShowDialog(); }
private void btn_them_Click(object sender, EventArgs e) { button = "insert"; //loaithuoc = dg_thuoc.Rows[dg_thuoc.CurrentRow.Index].Cells[1].Value.ToString(); // MessageBox.Show(dg_khachhang.Rows[dg_khachhang.CurrentRow.Index].Cells[0].Value.ToString()); frm_insert_khachhang f = new frm_insert_khachhang(this); f.ShowDialog(); }