private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { string id = dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString(); supp = dataGridView1.Rows[e.RowIndex].Cells[1].Value.ToString(); for (int i = 0; i < listnonota.Count(); i++) { if (listnonota[i] == id) { index = i; } } this.Close(); FormPembelian f = new FormPembelian(); f.Show(); }
private void pembelianToolStripMenuItem_Click(object sender, EventArgs e) { FormPembelian p = new FormPembelian(); p.Show(); }