⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 global.cs

📁 Windows Mobile用户签名程序
💻 CS
字号:
/*
	Global properties and methods.
*/

using System;
using System.Drawing;
using Common;

namespace PocketSignature
{
	/// <summary>
	/// Global values and methods.
	/// </summary>
	public class Global
	{
		// public consts
		public class Const
		{
			public const string EmptyAddress = "0.0.0.0";
		}
	
		// settings 
		static Settings _settings = new Settings(SettingDefaults.Values);
		
		static public Settings Settings
		{
			get { return _settings; }
		}

		// static methods		
		private Global()
		{
		}
		
		/// <summary>
		/// Return embedded bitmap resource.
		/// </summary>
		static public Bitmap LoadImage(string imageName)
		{
			return new Bitmap(System.Reflection.Assembly.GetExecutingAssembly().
				GetManifestResourceStream("PocketSignature.Images." + imageName));
		}		
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -