ASP.NET

- -! My Little Island

考虑在Windows 7 上实现一个基于WebBroswer的操作平面,可以很方面的搜索需要的各类型文件,也可以快速启动应用程序。并实现一些日程管理,密码保护功能。

启动程序集以外其他应用程序

代码内详 /// ///开启一个进程 /// /// 文件名(包含路径) /// 运行参数 private static void StartProcess(string FileName,string ErrorMsgPagePath) { try { if (!System.IO.File.Exists(FileName)) return; System.Diagnostics.Process myProcess = new System.Diagnostics.Process(); myProcess.StartInfo.Arguments = ErrorMsgPagePath; myProcess.StartInfo.UseShellExecute = true; myProcess.StartInfo.FileName = File...

泛型与DataTable的互相转化

///DataTable到范型转换 /// <summary> /// 适合于实体类和DataTable对应的情况 /// </summary> //将泛型类转换成DataTable    public static DataTable ToDataTable<T>(List<T> entitys)     {        DataTable dtResult = new DataTable();         if (entitys == null || entitys.Count < 1)         {             throw new Exception("需转换的集合为空");         }         Type entityType = entitys[0].GetType();         List<PropertyInfo> propertyInfoList = entityType.GetProperties().ToList<PropertyInfo>;...