📄 resourcehelper.cs
字号:
// *****************************************************************************
//
// Copyright 2004, Weifen Luo
// All rights reserved. The software and associated documentation
// supplied hereunder are the proprietary information of Weifen Luo
// and are supplied subject to licence terms.
//
// WinFormsUI Library Version 1.0
// *****************************************************************************
using System;
using System.Drawing;
using System.Reflection;
using System.Resources;
using System.Windows.Forms;
namespace WeifenLuo.WinFormsUI
{
internal class ResourceHelper
{
private static ResourceManager m_resourceManager;
static ResourceHelper()
{
m_resourceManager = new ResourceManager("WeifenLuo.WinFormsUI.Strings", typeof(DockPanel).Assembly);
}
public static Bitmap LoadBitmap(string name)
{
Assembly assembly = typeof(ResourceHelper).Assembly;
string fullNamePrefix = "WeifenLuo.WinFormsUI.Resources.";
return new Bitmap(assembly.GetManifestResourceStream(fullNamePrefix + name));
}
public static string GetString(string name)
{
return m_resourceManager.GetString(name);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -