X-Git-Url: https://git.llucax.com/z.facultad/75.10/miklolife.git/blobdiff_plain/827da8e0d8b4cf9a8a35a85c0cb921667721475a..b12c80addb617b372409a4020ff98a414ab1c0b8:/demo/src/Vistas/AgregarFamiliar.cs 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; } }