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