示例#1
0
        public static TimePickerFragment NewInstance(Action <DateTime> onTimeSelected)
        {
            TimePickerFragment frag = new TimePickerFragment();

            frag.timeSelectedHandler = onTimeSelected;
            return(frag);
        }
示例#2
0
        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);
        }