private void buttonDrugDetails_Click(object sender, EventArgs e) { DrugDetailForm drugDetailForm = new DrugDetailForm(); drugDetailForm.barcode = dataGridViewDrugList.SelectedRows[0].Cells[1].Value.ToString(); drugDetailForm.ShowDialog(); }
private void buttonDrugDetail_Click(object sender, EventArgs e) { DrugDetailForm drugDetailForm = new DrugDetailForm(); drugDetailForm.User = User; drugDetailForm.barcode = textBoxBarcode.Text.Trim(); drugDetailForm.ShowDialog(); }