private void button1_Click(object sender, EventArgs e) { button = "update"; frm_thuoc_insert f = new frm_thuoc_insert(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(); frm_thuoc_insert f = new frm_thuoc_insert(this); f.ShowDialog(); }