X-Git-Url: https://git.llucax.com/z.facultad/75.10/miklolife.git/blobdiff_plain/cfe46632f0d23423068570544fae8a76e0810f92..784d8fe6810090b52b41b9bc97d9d065ac16b528:/demo/src/Vistas/CalendarDialog.cs 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);