public static TimePickerFragment NewInstance(Action <DateTime> onTimeSelected) { TimePickerFragment frag = new TimePickerFragment(); frag.timeSelectedHandler = onTimeSelected; return(frag); }
private void _time_Click(object sender, EventArgs e) { TimePickerFragment frag = TimePickerFragment.NewInstance( delegate(DateTime time) { _selectedTime = time; _time.Text = time.ToShortTimeString(); }); frag.Show(FragmentManager, TimePickerFragment.TAG); }