Exemplo n.º 1
0
        public static TimePickerFragment NewInstance(Action <DateTime> onTimeSelected)
        {
            TimePickerFragment frag = new TimePickerFragment();

            frag.timeSelectedHandler = onTimeSelected;
            return(frag);
        }
Exemplo n.º 2
0
        void TimeSelectOnClick(object sender, EventArgs eventArgs)
        {
            //時刻を選択するフラグメント起動
            TimePickerFragment frag = TimePickerFragment.NewInstance(
                delegate(DateTime time)
            {
                timeDisplay.Text = time.ToShortTimeString();
                Date_hour        = time.Hour;
                Date_minute      = time.Minute;
            });

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