Ejemplo n.º 1
0
        void DateSelect_OnClick(object sender, EventArgs eventArgs)
        {
            DatePickerFragment frag = DatePickerFragment.NewInstance(delegate(DateTime time)
            {
                depDate.Text   = "Departure Date: " + time.DayOfWeek.ToString() + " " + time.ToLongDateString();
                initialDepDate = time;
            });

            frag.Show(FragmentManager, DatePickerFragment.TAG);
        }
Ejemplo n.º 2
0
        private void addDateClicked(object sender, EventArgs e)
        {
            DatePickerFragment frag = DatePickerFragment.NewInstance(delegate(DateTime time)
            {
                additionalDates.Text += time.DayOfWeek.ToString() + " " + time.ToLongDateString() + "\n";
                additionalDatesList.Add(time);
            });

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