private void dataGridView1_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex > -1) { SpeciesData d = new SpeciesData(int.Parse(dataGridView1[0, e.RowIndex].Value.ToString())); d.StartPosition = FormStartPosition.CenterScreen; d.Show(this); } else { SortResults(e); } }
private void btnDataEntry_Click(object sender, EventArgs e) { SpeciesData d = new SpeciesData(); d.StartPosition = FormStartPosition.CenterScreen; d.Show(); }
private void lSimilarSpecies_DoubleClick(object sender, EventArgs e) { int spId = SpeciesDataAccess.GetSpeciesIdFromSimilarSpecies(CurrentSpecies, Int32.Parse(lSimilarSpecies.SelectedValue.ToString())); SpeciesData newspecies = new SpeciesData(spId); newspecies.StartPosition = FormStartPosition.CenterScreen; newspecies.Show(this.Parent); }