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(); }
private void OnInvalidateDateClicked(object sender, DateSelectedEventArgs e) { string fullDateFormat = _context.Resources.GetString(Resource.String.full_date_format); string errorMsg = InvalidDateErrorMessage ?? _context.Resources.GetString(Resource.String.invalid_date); errorMsg = string.Format(errorMsg, MinDate.ToString(fullDateFormat), MaxDate.ToString(fullDateFormat)); if (!string.IsNullOrEmpty (errorMsg)) { Toast.MakeText (_context, InvalidDateErrorMessage ?? errorMsg, ToastLength.Short).Show (); } }
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, MinCal.ToString(fullDateFormat), MaxCal.ToString(fullDateFormat)); Toast.MakeText(_context, errorMsg, ToastLength.Short).Show(); }