private void dataGridViewClients_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e) { int index = dataGridViewClients.CurrentCell.RowIndex; if (index > -1) { Client client = Client.readOnDataBase(datahelper, index); FormTerapies formTerapies = new FormTerapies(client); formTerapies.Show(); } }
private void listBoxClientes_DoubleClick(object sender, EventArgs e) { int index; index = listBoxClientes.SelectedIndex; if (index > -1) { FormTerapies formTerapies = new FormTerapies(clients[index]); formTerapies.Show(); } }