X-Git-Url: https://git.llucax.com/z.facultad/75.10/miklolife.git/blobdiff_plain/827da8e0d8b4cf9a8a35a85c0cb921667721475a..2be5451ef59289f66dbd3e1d9ff5a69fcc271364:/demo/src/Vistas/AgregarFamiliar.cs?ds=inline diff --git a/demo/src/Vistas/AgregarFamiliar.cs b/demo/src/Vistas/AgregarFamiliar.cs index c2d0b17..2991f47 100644 --- a/demo/src/Vistas/AgregarFamiliar.cs +++ b/demo/src/Vistas/AgregarFamiliar.cs @@ -33,6 +33,7 @@ public class VAgregarFamiliar int actual; int total; + bool error = false; ETipoDocumento tipoTitular; int nroTitular; @@ -90,10 +91,15 @@ public class VAgregarFamiliar //_provincia _telefono = telefono.Text; - c.CargarFamiliar ( + if (c.CargarFamiliar ( tipoTitular, nroTitular, _tipoDoc, _nroDoc, _nombre, _apellido, _email, _fechaNac, _calle, _numero, _piso, _dpto, _telefono, - _sexo); + _sexo) == false ) + { + Console.WriteLine ("ERROR AL CARGAR FAMILIAR"); + error = true; + } + } public void OnSeleccionarFechaClicked (object o, EventArgs args) @@ -113,12 +119,13 @@ public class VAgregarFamiliar d.Destroy (); } - public void Run () + public bool Run () { Dialog w = (Dialog)xml.GetWidget ("agregar_familiar"); w.Title = String.Format ("Agregar Familiar {0} de {1}", actual, total); w.Run (); w.Destroy (); + return error; } }