예제 #1
0
        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);
            }
        }
예제 #2
0
 private void btnDataEntry_Click(object sender, EventArgs e)
 {
     SpeciesData d = new SpeciesData();
     d.StartPosition = FormStartPosition.CenterScreen;
     d.Show();
 }
예제 #3
0
        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);
        }