void DateSelect_OnClick(object sender, EventArgs eventArgs)
        {
            DatePickerFragment frag = DatePickerFragment.NewInstance(delegate(DateTime time)
            {
                _dateDisplay.Text            = "All weights prior to " + time.ToLongDateString() + "will be deleted !";
                datePicked                   = time;
                _dateSelectButton.Visibility = ViewStates.Gone;
                FindViewById <Button>(Resource.Id.OKbutton).Visibility     = ViewStates.Visible;
                FindViewById <Button>(Resource.Id.CancelButton).Visibility = ViewStates.Visible;
                //await deleteWeighs(time);
            });

            frag.Show(FragmentManager, DatePickerFragment.TAG);
        }
示例#2
0
        private void _remSingleButton_Click(object sender, EventArgs e)
        {
            DatePickerFragment frag = DatePickerFragment.NewInstance(delegate(DateTime time)
            {
                _dateDisplay.Text = "All weighs on day " + time.ToLongDateString() + " will be deleted!";
                datePicked        = time.AddDays(1);

                //CreateAndShowDialog("Date Picked = " + time, "");

                _dateSelectButton.Visibility = ViewStates.Gone;
                _remAllButton.Visibility     = ViewStates.Gone;
                _remSingleButton.Visibility  = ViewStates.Gone;
                job = DeleteJob.Single;
                FindViewById <Button>(Resource.Id.OKbutton).Visibility     = ViewStates.Visible;
                FindViewById <Button>(Resource.Id.CancelButton).Visibility = ViewStates.Visible;
            });

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