X-Git-Url: https://git.llucax.com/z.facultad/75.10/miklolife.git/blobdiff_plain/c36c16908f73901f367fe523aeef8dfb688ac2ff..1291e161c17f57ec10dce77c83636b8a3005977c:/demo/src/Vistas/IngresarSolicitud.cs diff --git a/demo/src/Vistas/IngresarSolicitud.cs b/demo/src/Vistas/IngresarSolicitud.cs index 384e646..3900bc6 100644 --- a/demo/src/Vistas/IngresarSolicitud.cs +++ b/demo/src/Vistas/IngresarSolicitud.cs @@ -101,6 +101,23 @@ public class VIngresarSolicitud c.Dispose (); } + public void OnSeleccionarFechaClicked (object o, EventArgs args) + { + + CalendarDialog d; + if (fechaNac.Text.Equals ("")) + d = new CalendarDialog (); + else + d = new CalendarDialog (fechaNac.Text); + + int response; + + response = d.Run(); + if (response == -3) + fechaNac.Text = d.Date.ToLongDateString (); + d.Destroy (); + } + public void Run () { Dialog w = (Dialog)xml.GetWidget ("ingresarSolicitud");