📄 common.cs
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -