public override void Selected(DialogViewController dvc, UITableView tableView, NSIndexPath path)
 {
     NullableDateTimeElement.MyViewController myViewController = new NullableDateTimeElement.MyViewController(this)
     {
         Autorotate = dvc.Autorotate
     };
     this.datePicker       = this.CreatePicker();
     this.datePicker.Frame = NullableDateTimeElement.PickerFrameWithSize(this.datePicker.SizeThatFits(SizeF.Empty));
     myViewController.View.BackgroundColor = UIColor.Black;
     myViewController.View.AddSubview(this.datePicker);
     dvc.ActivateController(myViewController);
 }
 /*void nullButtonWasTouched(object sender, EventArgs e)
  * {
  *      hasNullValue = true;
  *      NavigationController.PopViewControllerAnimated (true);
  * }*/
 public override void DidRotate(UIInterfaceOrientation fromInterfaceOrientation)
 {
     base.DidRotate(fromInterfaceOrientation);
     this.container.datePicker.Frame = NullableDateTimeElement.PickerFrameWithSize(this.container.datePicker.SizeThatFits(SizeF.Empty));
 }
 public MyViewController(NullableDateTimeElement container)
 {
     this.container = container;
 }