X-Git-Url: https://git.llucax.com/z.facultad/75.10/miklolife.git/blobdiff_plain/cfe46632f0d23423068570544fae8a76e0810f92..22b9b4517d3bbda8f2441bf59833fa416d5fa896:/demo/src/Vistas/CalendarDialog.cs?ds=inline diff --git a/demo/src/Vistas/CalendarDialog.cs b/demo/src/Vistas/CalendarDialog.cs index 958abca..4efdc59 100644 --- a/demo/src/Vistas/CalendarDialog.cs +++ b/demo/src/Vistas/CalendarDialog.cs @@ -12,6 +12,22 @@ public class CalendarDialog : Dialog } public CalendarDialog ():base ("Seleccionar Fecha", null, DialogFlags.DestroyWithParent) + { + Init (); + } + + public CalendarDialog (string date):base ("Seleccionar Fecha", null, DialogFlags.DestroyWithParent) + { + Init (); + try { + calendar.Date = DateTime.Parse (date); + } + catch (Exception e) { + Console.WriteLine (e); + } + } + + private void Init () { calendar = new Calendar (); VBox.PackStart (calendar);