X-Git-Url: https://git.llucax.com/z.facultad/75.10/miklolife.git/blobdiff_plain/f76a8751e3e756f639575c982de75919afe43544..22816151931a6908cbf83c4d2e0c20cdf84af0b1:/demo/src/Vistas/AgregarFamiliar.cs?ds=sidebyside 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; } }