Ejemplo n.º 1
0
        public static TimePickerFragment CreateInstance(Action <DateTime> onTimeSelected)
        {
            var fragment = new TimePickerFragment();

            fragment.timeSelectedHandler = onTimeSelected;

            return(fragment);
        }
Ejemplo n.º 2
0
        private void TimeSelectedOnClick(object sender, EventArgs eventArgs)
        {
            var timePickerFragment = TimePickerFragment.CreateInstance(
                delegate(DateTime time)
            {
                this.displayTimeText.Text = time.ToShortTimeString();
            });

            timePickerFragment.Show(base.FragmentManager, TimePickerFragment.Tag);
        }