• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
FtpCsharp
博客园    首页    新随笔    联系   管理    订阅  订阅
2011年4月8日
Convert Between Class And Xml
摘要: public T DeSerializer<T>(string serializer) { DataContractSerializer ser = new DataContractSerializer(typeof(T)); MemoryStream ms = new MemoryStream(Encoding.UTF8.GetBytes(serializer)); T DatatractDto = (T)ser.ReadObject(ms); ms.Close(); return DatatractDto; }public string Serialize<T>(T 阅读全文
posted @ 2011-04-08 18:32 FtpCsharp 阅读(202) 评论(0) 推荐(0)
DEV ComboBoxEdit 实现 键值
摘要: 定义combox绑定类:public class ComboxData { public string Text{ set; get; } public string Value{ set; get; } public override string ToString() { return Text; } }具体绑定:DevExpress.XtraEditors.ComboBoxEdit combox;ComboxData data = new ComboxData(); data.Text ="需要显示的文本"; data.Value= “类似Tag功能”; combox 阅读全文
posted @ 2011-04-08 18:21 FtpCsharp 阅读(1927) 评论(0) 推荐(0)
DEV ImageComboxEdit 使用
摘要: 初始化: DevExpress.XtraEditors.ImageComboBoxEdit imageComboBox=new DevExpress.XtraEditors.ImageComboBoxEdi();图片容器: DevExpress.Utils.ImageCollection imageCollection;设置ImageComboxEdit 的图片集合: imageComboBox.Properties.SmallImages=imageCollection;添加子项: ImageComboBoxItem item = new ImageComboBoxItem(); item. 阅读全文
posted @ 2011-04-08 18:12 FtpCsharp 阅读(2128) 评论(0) 推荐(0)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3