/// <summary>
 /// Handles the Click event of the fromDateButton control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
 private void fromDateButton_Click(object sender, EventArgs e)
 {
     var newFragment = new DatePickerFragment();
     newFragment.SetDate += SetDateFromLabel;
     newFragment.Show(FragmentManager, GetString(Resource.String.DatePicker));
     var fmDate = DateTimeOffset.Parse(fromDate.Text, us).Date;
     newFragment.AssignDate(fmDate);
 }
Пример #2
0
 /// <summary>
 /// Handles the Click event of the btnCalander control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="EventArgs" /> instance containing the event data.</param>
 private void btnCalander_Click(object sender, EventArgs e)
 {
     if (!IfNetworkAvailable())
     {
         return;
     }
     var newFragment = new DatePickerFragment();
     newFragment.SetDate += SetDateFromLabel;
     newFragment.Show(FragmentManager, GetString(Resource.String.DatePicker));
     var headerDate = DateTimeOffset.Parse(ApplicationData.CurrentDate, us).Date;
     newFragment.AssignDate(headerDate);
 }
        /// <summary>
        /// Handles the Click event of the toDateButton control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
        private void toDateButton_Click(object sender, EventArgs e)
        {
            var newFragment = new DatePickerFragment();
            newFragment.SetDate += SetDateToLabel;

            newFragment.Show(FragmentManager, GetString(Resource.String.DatePicker));

            newFragment.AssignDate(Convert.ToDateTime(toDate.Text, us));
        }