Beispiel #1
0
        private void EndDate_button_Click(object sender, EventArgs e)
        {
            Log.Debug(TAG, nameof(EndDate_button_Click));

            DatePickerFragment frag = DatePickerFragment.NewInstance(delegate(DateTime date)
            {
                endDate_button.Text = date.ToString(Resources.GetString(Resource.String.DateFormat)); //.ToLongDateString();
                endDate_button.Tag  = new JavaLangObjectWrapper <DateTime>(date);
            });

            frag.Show(this.Activity.FragmentManager, DatePickerFragment.TAG);
        }
Beispiel #2
0
        private void DateFrom_button_Click(object sender, EventArgs e)
        {
            Log.Debug(TAG, nameof(DateTo_button_Click));

            DatePickerFragment frag = DatePickerFragment.NewInstance(delegate(DateTime date)
            {
                dateFrom_button.Text = date.ToString(Resources.GetString(Resource.String.DateFormat)); //.ToLongDateString();
                dateFrom_button.Tag  = new JavaLangObjectWrapper <DateTime>(date);

                var r = LoadData(((JavaLangObjectWrapper <DateTime>)dateFrom_button.Tag).Value, ((JavaLangObjectWrapper <DateTime>)dateTo_button.Tag).Value, costs_checkBox.Checked, earnings_checkBox.Checked);//.Result;
            });

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