X-Git-Url: https://git.llucax.com/z.facultad/75.10/miklolife.git/blobdiff_plain/cfe46632f0d23423068570544fae8a76e0810f92..24d5eafe559623e7f04be1c7a7b8c25d8a754d9e:/demo/src/Vistas/CalendarDialog.cs?ds=sidebyside 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);