common.cs
来自「C# project , PDA development Mobile Cont」· CS 代码 · 共 64 行
CS
64 行
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using System.IO;
using System.Reflection;
namespace Kenneth.DotNet.MobileControls
{
public class Common
{
#region Get Image from Resouce File
public static Image GetImageFromResource(string fileName)
{
string an = Assembly.GetExecutingAssembly().GetName().Name + ".Images." + fileName;
Stream sm = Assembly.GetExecutingAssembly().GetManifestResourceStream(an);
return new Bitmap(sm);
}
#endregion
}
#region Internal Class
public class ListItemObj
{
private string _value;
private string _text;
public string Value
{
get
{
return _value;
}
set
{
_value = value;
}
}
public string Text
{
get
{
return _text;
}
set
{
_text = value;
}
}
public ListItemObj(string t1, string v1)
{
_text = t1;
_value = v1;
}
}
#endregion
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?