This repository has been archived on 2024-01-02. You can view files and clone it, but cannot push or open issues or pull requests.
Sic06/FrameworkLocal/UIClient/DataGridTransform/Resources/SR.cs

45 lines
1.5 KiB
C#

//---------------------------------------------------------------------------
//
// 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
{
/// <summary>
/// Retrieves exception strings and other localized strings.
/// </summary>
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);
}
}