Ejemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            FrmCadastroUsuarios_Antigo cad = new FrmCadastroUsuarios_Antigo();

            cad.ShowDialog();
            carregaGrid();
        }
Ejemplo n.º 2
0
 private void btnEditar_Click(object sender, EventArgs e)
 {
     if (gridUsuarios.CurrentRow.Cells[0].Value != null)
     {
         FrmCadastroUsuarios_Antigo cad = new FrmCadastroUsuarios_Antigo();
         //  cad.editando(int.Parse(gridUsuarios.CurrentRow.Cells[0].Value.ToString()));
         cad.ShowDialog();
         gridUsuarios.Rows.Clear();
         carregaGrid();
     }
     else
     {
         MessageBox.Show("Selecione um registro!");
     }
 }