Beispiel #1
0
 protected virtual void OnCalendarbuttonClicked(object sender, System.EventArgs e)
 {
     if (Environment.OSVersion.Platform == PlatformID.Win32NT)
     {
         win32CP = new Win32CalendarDialog();
         win32CP.TransientFor = (Gtk.Window) this.Toplevel;
         win32CP.Run();
         Date = win32CP.getSelectedDate();
         win32CP.Destroy();
     }
     else
     {
         cp.TransientFor = (Gtk.Window) this.Toplevel;
         cp.Show();
     }
 }
Beispiel #2
0
 protected virtual void OnDatebuttonClicked(object sender, System.EventArgs e)
 {
     if (Environment.OSVersion.Platform == PlatformID.Win32NT)
     {
         var win32CP = new Win32CalendarDialog();
         win32CP.TransientFor = (Gtk.Window) this.Toplevel;
         win32CP.Run();
         player.Birthday = win32CP.getSelectedDate();
         bdaylabel.Text  = win32CP.getSelectedDate().ToShortDateString();
         win32CP.Destroy();
     }
     else
     {
         cp.TransientFor = (Gtk.Window) this.Toplevel;
         cp.Show();
     }
 }