Exemplo n.º 1
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            // get the ID column index
            int indexID = GetColumnID("ID", dgGenes).Index;

            if (dgGenes.RowCount != 0)
            {
                int geneID = (int)dgGenes.SelectedRows[0].Cells[indexID].Value;

                FrmGene frmGene = new FrmGene(this, geneID, _uploadID);
                frmGene.ShowDialog();
            }
        }
Exemplo n.º 2
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     FrmGene frmGene = new FrmGene(this, -1, _uploadID);
     frmGene.ShowDialog();
 }