Ejemplo n.º 1
0
 private void bunifuThinButton21_Click(object sender, EventArgs e)
 {
     if (textBox1.Text != "")
     {
         FamilyController _family = new FamilyController();
         _family.insert(new Family()
         {
             family = textBox1.Text
         });
         MessageBox.Show("Cadastrado com sucesso");
         if (activeContructor == FamilyRestViewConstructor)
         {
             frmFamilyRest.fillData();
         }
         Close();
     }
     else
     {
         MessageBox.Show("Preencha o campo correctamente");
     }
 }