X-Git-Url: https://git.llucax.com/z.facultad/75.10/miklolife.git/blobdiff_plain/cfe46632f0d23423068570544fae8a76e0810f92..7d4ebc298f9f77b5777560ad315497897a5bbc28:/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);