Example #1
0
        public static DateViewDialog NewInstance(Action <DateTime> onDateSelected)
        {
            DateViewDialog dailogView = new DateViewDialog();

            dailogView._dateSelectedHandler = onDateSelected;
            return(dailogView);
        }
        private void DropOffDate_Click(object sender, EventArgs e)
        {
            DateViewDialog frag = DateViewDialog.NewInstance(delegate(DateTime time)
            {
                pickUpDate.Text = time.Date.ToString("dd-MMM-yyyy");
                pickUpDate.SetTextColor(Color.ParseColor("#000000"));
                //   dropOffDate = time.Date;
                //dob.Text = time.ToLongDateString();
            });

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