2012年6月15日

SL模版引用

摘要: public class IconConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { if (value != null) { string iconUrl = value.ToString(); if (!string.IsNullOrEmpty(iconUrl)) { return "/Abis.Res;compone... 阅读全文

posted @ 2012-06-15 23:11 疯狂的石头陈 阅读(211) 评论(0) 推荐(0)

List<Model>对象转成DataTable

摘要: C#方式 static class Program { /// <summary> /// 应用程序的主入口点。 /// </summary> [STAThread] static void Main() { List<ModelList> list = new List<ModelList>(); list.Add(new ModelList { X = "小王0", Y = "40" }); list.Add(new ModelLis... 阅读全文

posted @ 2012-06-15 09:14 疯狂的石头陈 阅读(908) 评论(0) 推荐(0)

导航