示例#1
0
        private void btnNovo_Click(object sender, EventArgs e)
        {
            frmCadastro cad = new frmCadastro(0);

            cad.ShowDialog();
            CarregaGrid();
        }
示例#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());
         frmCadastro altera = new frmCadastro(id);
         altera.ShowDialog();
         CarregaGrid();
     }
 }
示例#3
0
        private void lblCadastrar_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            frmCadastro cad = new frmCadastro(0);

            cad.Show();
        }