//--------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. // //--------------------------------------------------------------------------- using MECF.Framework.UI.Client.Properties; using System; using System.Globalization; using System.Resources; namespace ExtendedGrid.Microsoft.Windows.Controls { /// /// Retrieves exception strings and other localized strings. /// internal static class SR { internal static string Get(SRID id) { return Resources.ResourceManager.GetString(id.String); //return _resourceManager.GetString(id.String); } internal static string Get(SRID id, params object[] args) { string message = Resources.ResourceManager.GetString(id.String); //string message = _resourceManager.GetString(id.String); if (message != null) { // Apply arguments to formatted string (if applicable) if (args != null && args.Length > 0) { message = String.Format(CultureInfo.CurrentCulture, message, args); } } return message; } // Get exception string resources for current locale //private static ResourceManager _resourceManager = new ResourceManager("ExceptionStringTable", typeof(SR).Assembly); } }