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(); FormCustomer f = new FormCustomer(); f.Show(); }
private void customerToolStripMenuItem_Click(object sender, EventArgs e) { FormCustomer f = new FormCustomer(); f.Show(); }