Example #1
0
        /// <summary>
        /// Handles the <see cref="E:InvalidateDateClicked" /> event.
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="e">The <see cref="DateSelectedEventArgs"/> instance containing the event data.</param>
        private void OnInvalidateDateClicked(object sender, DateSelectedEventArgs e)
        {
            string fullDateFormat = _context.Resources.GetString(Resource.String.full_date_format);
            string errorMsg       = _context.Resources.GetString(Resource.String.invalid_date);

            errorMsg = string.Format(errorMsg, MinDate.ToString(fullDateFormat),
                                     MaxDate.ToString(fullDateFormat));
            Toast.MakeText(_context, errorMsg, ToastLength.Short).Show();
        }
		/// <summary>
		/// Handles the <see cref="E:InvalidateDateClicked" /> event.
		/// </summary>
		/// <param name="sender">The sender.</param>
		/// <param name="e">The <see cref="DateSelectedEventArgs"/> instance containing the event data.</param>
		private void OnInvalidateDateClicked(object sender, DateSelectedEventArgs e)
		{
			string fullDateFormat = _context.Resources.GetString(Resource.String.full_date_format);
			string errorMsg = _context.Resources.GetString(Resource.String.invalid_date);
			errorMsg = string.Format(errorMsg, MinDate.ToString(fullDateFormat),
				MaxDate.ToString(fullDateFormat));
			Toast.MakeText(_context, errorMsg, ToastLength.Short).Show();
		}