]> git.llucax.com Git - z.facultad/75.10/miklolife.git/blobdiff - demo/src/Vistas/CalendarDialog.cs
saraza
[z.facultad/75.10/miklolife.git] / demo / src / Vistas / CalendarDialog.cs
index 958abca44136a2ed9ffeacf0fd9d33c65da69e4d..4efdc59397668105feba21c472a3016b8cb97c4c 100644 (file)
@@ -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);