Exemplo n.º 1
0
 private void btn_altmat_Click(object sender, EventArgs e)
 {
     try
     {
         int     Id = int.Parse(txtid.Text);
         Materia m  = dao.BuscaPorId(Id);
         m.Nome = txtNomemat.Text;
         dao.Alt();
         btn_limpmat_Click(sender, e);
     }
     catch { MessageBox.Show("Ocorreu algum erro, tente novamente"); }
 }