ResourceHelper.cs
上传用户:szlfmled
上传日期:2020-11-22
资源大小:978k
文件大小:1k
源码类别:

C#编程

开发平台:

C#

  1. using System;
  2. using System.Drawing;
  3. using System.Reflection;
  4. using System.Resources;
  5. using System.Windows.Forms;
  6. namespace WeifenLuo.WinFormsUI.Docking
  7. {
  8. internal static class ResourceHelper
  9. {
  10.         private static ResourceManager _resourceManager = null;
  11.         private static ResourceManager ResourceManager
  12.         {
  13.             get
  14.             {
  15.                 if (_resourceManager == null)
  16.                     _resourceManager = new ResourceManager("WeifenLuo.WinFormsUI.Docking.Strings", typeof(ResourceHelper).Assembly);
  17.                 return _resourceManager;
  18.             }
  19.         }
  20. public static string GetString(string name)
  21. {
  22. return ResourceManager.GetString(name);
  23. }
  24. }
  25. }