ExceptionStringTable.cs 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. using System.ComponentModel;
  2. using System.Globalization;
  3. using System.Resources;
  4. namespace HandyControl.Interactivity;
  5. internal class ExceptionStringTable
  6. {
  7. private static ResourceManager ResourceMan;
  8. [EditorBrowsable(EditorBrowsableState.Advanced)]
  9. internal static ResourceManager ResourceManager => ResourceMan ??= new ResourceManager(nameof(ExceptionStringTable),
  10. typeof(ExceptionStringTable).Assembly);
  11. [EditorBrowsable(EditorBrowsableState.Advanced)]
  12. internal static CultureInfo Culture { get; set; }
  13. internal static string CannotHostBehaviorCollectionMultipleTimesExceptionMessage =>
  14. ResourceManager.GetString(nameof(CannotHostBehaviorCollectionMultipleTimesExceptionMessage), Culture);
  15. internal static string CannotHostBehaviorMultipleTimesExceptionMessage =>
  16. ResourceManager.GetString(nameof(CannotHostBehaviorMultipleTimesExceptionMessage), Culture);
  17. internal static string CannotHostTriggerActionMultipleTimesExceptionMessage =>
  18. ResourceManager.GetString(nameof(CannotHostTriggerActionMultipleTimesExceptionMessage), Culture);
  19. internal static string CannotHostTriggerCollectionMultipleTimesExceptionMessage =>
  20. ResourceManager.GetString(nameof(CannotHostTriggerCollectionMultipleTimesExceptionMessage), Culture);
  21. internal static string CannotHostTriggerMultipleTimesExceptionMessage =>
  22. ResourceManager.GetString(nameof(CannotHostTriggerMultipleTimesExceptionMessage), Culture);
  23. internal static string CommandDoesNotExistOnBehaviorWarningMessage =>
  24. ResourceManager.GetString(nameof(CommandDoesNotExistOnBehaviorWarningMessage), Culture);
  25. internal static string DefaultTriggerAttributeInvalidTriggerTypeSpecifiedExceptionMessage =>
  26. ResourceManager.GetString(nameof(DefaultTriggerAttributeInvalidTriggerTypeSpecifiedExceptionMessage),
  27. Culture);
  28. internal static string DuplicateItemInCollectionExceptionMessage =>
  29. ResourceManager.GetString(nameof(DuplicateItemInCollectionExceptionMessage), Culture);
  30. internal static string EventTriggerBaseInvalidEventExceptionMessage =>
  31. ResourceManager.GetString(nameof(EventTriggerBaseInvalidEventExceptionMessage), Culture);
  32. internal static string EventTriggerCannotFindEventNameExceptionMessage =>
  33. ResourceManager.GetString(nameof(EventTriggerCannotFindEventNameExceptionMessage), Culture);
  34. internal static string RetargetedTypeConstraintViolatedExceptionMessage =>
  35. ResourceManager.GetString(nameof(RetargetedTypeConstraintViolatedExceptionMessage), Culture);
  36. internal static string TypeConstraintViolatedExceptionMessage =>
  37. ResourceManager.GetString(nameof(TypeConstraintViolatedExceptionMessage), Culture);
  38. internal static string UnableToResolveTargetNameWarningMessage =>
  39. ResourceManager.GetString(nameof(UnableToResolveTargetNameWarningMessage), Culture);
  40. }