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

            frag.timeSelectedHandler = onTimeSelected;
            return(frag);
        }
Exemple #2
0
        private void Scan_Click(object sender, EventArgs e)
        {
            TimePickerFragment frag = TimePickerFragment.NewInstance(
                delegate(DateTime time)
            {
                timev.Text = time.ToLongTimeString();
            });

            frag.Show(FragmentManager, TimePickerFragment.TAG);
        }