コード例 #1
0
ファイル: frmCategorias.cs プロジェクト: chouji19/cabusoft
 private void btnSaveSub_Click(object sender, EventArgs e)
 {
     if (!txtSubCategoria.Text.Equals(""))
     {
         LogicaGo logica = new LogicaGo();
         int      res    = logica.actualizarSubCategoria(txtSubCategoria.Text, txtSubCategoriaId.Text);
         if (res != 1)
         {
             MessageBox.Show("No se pudo ingresar el registro");
         }
         else
         {
             MessageBox.Show("SubCategoria Cargada Correctamente");
             cargarSubCategorias();
         }
     }
     else
     {
         MessageBox.Show("Debe ingresar un nombre");
     }
 }