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