public static void CancelCurrent() { if (_current != null) { if (_current.Click != null) _current.Click (_current, new UIButtonEventArgs (1)); _current.Close (); _current = null; } }
public DatePicker () { _current = this; _titleLabel.BackgroundColor = UIColor.GroupTableViewBackgroundColor; _titleLabel.TextColor = UIColor.DarkTextColor; _titleLabel.Font = UIFont.BoldSystemFontOfSize (18); _titleLabel.LineBreakMode = UILineBreakMode.TailTruncation; _datePicker.BackgroundColor = UIColor.GroupTableViewBackgroundColor; _layout.BackgroundColor = UIColor.GroupTableViewBackgroundColor; _layout.AddSubview (_datePicker); _layout.AddSubview (_titleLabel); _layout.AddSubview (_doneButton); _layout.AddSubview (_cancelButton); }