Ejemplo n.º 1
0
        private void btnNovo_click(object sender, EventArgs e)
        {
            frmCadastroAlteracaoProjeto projeto = new frmCadastroAlteracaoProjeto(u, 0);

            projeto.ShowDialog();
            CarregaGrid();
        }
Ejemplo n.º 2
0
 private void btnAlterar_click(object sender, EventArgs e)
 {
     if (dgvDados.SelectedRows.Count == 1)
     {
         int id = Convert.ToInt32(dgvDados.CurrentRow.Cells[0].Value.ToString());
         frmCadastroAlteracaoProjeto projeto = new frmCadastroAlteracaoProjeto(u, id);
         projeto.ShowDialog();
         CarregaGrid();
     }
     else
     {
         MessageBox.Show("Selecione apenas um Registro!!!");
     }
 }