Ejemplo n.º 1
0
        public static TimeViewDialog NewInstance(Action <TimeSpan> onTimeSelected)
        {
            TimeViewDialog dailogView = new TimeViewDialog();

            dailogView._timeSelectedHandler = onTimeSelected;
            return(dailogView);
        }
Ejemplo n.º 2
0
        private void DropOffTime_Click(object sender, EventArgs e)
        {
            TimeViewDialog frag = TimeViewDialog.NewInstance(delegate(TimeSpan time)
            {
                dropOffTime.Text = time.ToString();
                dropOffTime.SetTextColor(Color.ParseColor("#000000"));
            });

            frag.Show(FragmentManager, TimeViewDialog.TAG);
        }
Ejemplo n.º 3
0
        private void PickUpTime_Click(object sender, EventArgs e)
        {
            // string time = string.Format("{0}:{1}", hour, minute.ToString().PadLeft(2, '0'));
            // pickUpTime.Text = time;
            //TimeViewDialog frag = new TimeViewDialog();
            TimeViewDialog frag = TimeViewDialog.NewInstance(delegate(TimeSpan time)
            {
                pickUpTime.Text = time.ToString();
                pickUpTime.SetTextColor(Color.ParseColor("#000000"));
            });

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