private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { id = dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString(); for (int i = 0; i < listid.Count(); i++) { if (listid[i] == id) { index = i; } } this.Close(); FormSupplier f = new FormSupplier(); f.Show(); }
private void supplierToolStripMenuItem_Click(object sender, EventArgs e) { FormSupplier f = new FormSupplier(); f.Show(); }