Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
 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();
 }