Ejemplo n.º 1
0
        private void dgvDados_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            try
            {
                Int64 seq = Convert.ToInt64(dgvDados.SelectedRows[0].Cells[0].Value);

                Controle c = tabelaControles[seq];

                frmCadControle form = new frmCadControle();

                form.Tag = c;

                form.ShowDialog();
                CarregarGridDoBD("");
            }
            catch (Exception ex)
            {
                MessageBox.Show("ERRO AO SELECIONAR CADASTRO: " + ex.Message);
            }
        }
Ejemplo n.º 2
0
        private void itemBarraControleCadastro_Click(object sender, EventArgs e)
        {
            frmCadControle form = new frmCadControle();

            form.ShowDialog();
        }