From 52acf41e331ddbd66befed4692c804b754ba7d5c Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 30 Jan 2020 20:26:52 +0800 Subject: ... --- Timeline/Resources/Services/Exception.Designer.cs | 49 +------- Timeline/Resources/Services/Exception.resx | 17 +-- .../Resources/Services/TimelineService.Designer.cs | 81 +++++++++++++ Timeline/Resources/Services/TimelineService.resx | 126 ++++++++++++++++++++ Timeline/Resources/Services/UserCache.Designer.cs | 99 ---------------- Timeline/Resources/Services/UserCache.resx | 132 --------------------- .../Services/UserDetailService.Designer.cs | 99 ---------------- Timeline/Resources/Services/UserDetailService.resx | 132 --------------------- 8 files changed, 210 insertions(+), 525 deletions(-) create mode 100644 Timeline/Resources/Services/TimelineService.Designer.cs create mode 100644 Timeline/Resources/Services/TimelineService.resx delete mode 100644 Timeline/Resources/Services/UserCache.Designer.cs delete mode 100644 Timeline/Resources/Services/UserCache.resx delete mode 100644 Timeline/Resources/Services/UserDetailService.Designer.cs delete mode 100644 Timeline/Resources/Services/UserDetailService.resx (limited to 'Timeline/Resources/Services') diff --git a/Timeline/Resources/Services/Exception.Designer.cs b/Timeline/Resources/Services/Exception.Designer.cs index cada1788..e6806873 100644 --- a/Timeline/Resources/Services/Exception.Designer.cs +++ b/Timeline/Resources/Services/Exception.Designer.cs @@ -117,9 +117,9 @@ namespace Timeline.Resources.Services { /// /// Looks up a localized string similar to A present resource conflicts with the given resource.. /// - internal static string ConfictException { + internal static string ConflictException { get { - return ResourceManager.GetString("ConfictException", resourceCulture); + return ResourceManager.GetString("ConflictException", resourceCulture); } } @@ -258,42 +258,6 @@ namespace Timeline.Resources.Services { } } - /// - /// Looks up a localized string similar to The timeline with that name already exists.. - /// - internal static string TimelineAlreadyExistException { - get { - return ResourceManager.GetString("TimelineAlreadyExistException", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to An exception happened when add or remove member on timeline.. - /// - internal static string TimelineMemberOperationException { - get { - return ResourceManager.GetString("TimelineMemberOperationException", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to An exception happened when do operation {0} on the {1} member on timeline.. - /// - internal static string TimelineMemberOperationExceptionDetail { - get { - return ResourceManager.GetString("TimelineMemberOperationExceptionDetail", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Timeline name is of bad format. If this is a personal timeline, it means the username is of bad format and inner exception should be a UsernameBadFormatException.. - /// - internal static string TimelineNameBadFormatException { - get { - return ResourceManager.GetString("TimelineNameBadFormatException", resourceCulture); - } - } - /// /// Looks up a localized string similar to Timeline does not exist. If this is a personal timeline, it means the user does not exist and inner exception should be a UserNotExistException.. /// @@ -312,15 +276,6 @@ namespace Timeline.Resources.Services { } } - /// - /// Looks up a localized string similar to The use is not a member of the timeline.. - /// - internal static string TimelineUserNotMemberException { - get { - return ResourceManager.GetString("TimelineUserNotMemberException", resourceCulture); - } - } - /// /// Looks up a localized string similar to The user does not exist.. /// diff --git a/Timeline/Resources/Services/Exception.resx b/Timeline/Resources/Services/Exception.resx index 2cb0f11a..11ae5f27 100644 --- a/Timeline/Resources/Services/Exception.resx +++ b/Timeline/Resources/Services/Exception.resx @@ -135,7 +135,7 @@ The password is wrong. - + A present resource conflicts with the given resource. @@ -183,27 +183,12 @@ Password is of bad format. - - The timeline with that name already exists. - - - An exception happened when add or remove member on timeline. - - - An exception happened when do operation {0} on the {1} member on timeline. - - - Timeline name is of bad format. If this is a personal timeline, it means the username is of bad format and inner exception should be a UsernameBadFormatException. - Timeline does not exist. If this is a personal timeline, it means the user does not exist and inner exception should be a UserNotExistException. The timeline post does not exist. You can't do operation on it. - - The use is not a member of the timeline. - The user does not exist. diff --git a/Timeline/Resources/Services/TimelineService.Designer.cs b/Timeline/Resources/Services/TimelineService.Designer.cs new file mode 100644 index 00000000..8212c252 --- /dev/null +++ b/Timeline/Resources/Services/TimelineService.Designer.cs @@ -0,0 +1,81 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Timeline.Resources.Services { + using System; + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class TimelineService { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal TimelineService() { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Timeline.Resources.Services.TimelineService", typeof(TimelineService).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + /// + /// Looks up a localized string similar to The number {0} username is invalid.. + /// + internal static string ExceptionChangeMemberUsernameBadFormat { + get { + return ResourceManager.GetString("ExceptionChangeMemberUsernameBadFormat", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The owner username of personal timeline is of bad format.. + /// + internal static string ExceptionFindTimelineUsernameBadFormat { + get { + return ResourceManager.GetString("ExceptionFindTimelineUsernameBadFormat", resourceCulture); + } + } + } +} diff --git a/Timeline/Resources/Services/TimelineService.resx b/Timeline/Resources/Services/TimelineService.resx new file mode 100644 index 00000000..0429a2f8 --- /dev/null +++ b/Timeline/Resources/Services/TimelineService.resx @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + The number {0} username is invalid. + + + The owner username of personal timeline is of bad format. + + \ No newline at end of file diff --git a/Timeline/Resources/Services/UserCache.Designer.cs b/Timeline/Resources/Services/UserCache.Designer.cs deleted file mode 100644 index 28a74a6c..00000000 --- a/Timeline/Resources/Services/UserCache.Designer.cs +++ /dev/null @@ -1,99 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.42000 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Timeline.Resources.Services { - using System; - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class UserCache { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal UserCache() { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager { - get { - if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Timeline.Resources.Services.UserCache", typeof(UserCache).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture { - get { - return resourceCulture; - } - set { - resourceCulture = value; - } - } - - /// - /// Looks up a localized string similar to Found user info from cache. Entry: {0} .. - /// - internal static string LogGetCacheExist { - get { - return ResourceManager.GetString("LogGetCacheExist", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to User info not exist in cache. Id: {0} .. - /// - internal static string LogGetCacheNotExist { - get { - return ResourceManager.GetString("LogGetCacheNotExist", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to User info remove in cache. Id: {0} .. - /// - internal static string LogRemoveCache { - get { - return ResourceManager.GetString("LogRemoveCache", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to User info set in cache. Entry: {0} .. - /// - internal static string LogSetCache { - get { - return ResourceManager.GetString("LogSetCache", resourceCulture); - } - } - } -} diff --git a/Timeline/Resources/Services/UserCache.resx b/Timeline/Resources/Services/UserCache.resx deleted file mode 100644 index 1102108b..00000000 --- a/Timeline/Resources/Services/UserCache.resx +++ /dev/null @@ -1,132 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Found user info from cache. Entry: {0} . - - - User info not exist in cache. Id: {0} . - - - User info remove in cache. Id: {0} . - - - User info set in cache. Entry: {0} . - - \ No newline at end of file diff --git a/Timeline/Resources/Services/UserDetailService.Designer.cs b/Timeline/Resources/Services/UserDetailService.Designer.cs deleted file mode 100644 index 2f586b36..00000000 --- a/Timeline/Resources/Services/UserDetailService.Designer.cs +++ /dev/null @@ -1,99 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.42000 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Timeline.Resources.Services { - using System; - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class UserDetailService { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal UserDetailService() { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager { - get { - if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Timeline.Resources.Services.UserDetailService", typeof(UserDetailService).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture { - get { - return resourceCulture; - } - set { - resourceCulture = value; - } - } - - /// - /// Looks up a localized string similar to Length of nickname can't be bigger than 10.. - /// - internal static string ExceptionNicknameTooLong { - get { - return ResourceManager.GetString("ExceptionNicknameTooLong", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to A user_details entity has been created. User id is {0}. Nickname is {1}.. - /// - internal static string LogEntityNicknameCreate { - get { - return ResourceManager.GetString("LogEntityNicknameCreate", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Nickname of a user_details entity has been updated to a new value. User id is {0}. New value is {1}.. - /// - internal static string LogEntityNicknameSetNotNull { - get { - return ResourceManager.GetString("LogEntityNicknameSetNotNull", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Nickname of a user_details entity has been updated to null. User id is {0}.. - /// - internal static string LogEntityNicknameSetToNull { - get { - return ResourceManager.GetString("LogEntityNicknameSetToNull", resourceCulture); - } - } - } -} diff --git a/Timeline/Resources/Services/UserDetailService.resx b/Timeline/Resources/Services/UserDetailService.resx deleted file mode 100644 index ea32aeda..00000000 --- a/Timeline/Resources/Services/UserDetailService.resx +++ /dev/null @@ -1,132 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Length of nickname can't be bigger than 10. - - - A user_details entity has been created. User id is {0}. Nickname is {1}. - - - Nickname of a user_details entity has been updated to a new value. User id is {0}. New value is {1}. - - - Nickname of a user_details entity has been updated to null. User id is {0}. - - \ No newline at end of file -- cgit v1.2.3