摘要: using System.IO; //导出到execl public void Excel(DataGridView dgv) { SaveFileDialog saveFileDialog = new SaveFileDialog(); saveFileDialog.Filter = "Execl files (*.xls)|*.xls"; saveFileDialog.FilterIndex = 0; saveFileDialog.RestoreDirecto... 阅读全文
posted @ 2012-08-26 13:34 一棍打出屁 阅读(1072) 评论(0) 推荐(0) 编辑
摘要: using System.Runtime.InteropServices; #region [操作ini文件] [DllImport("kernel32")] private static extern bool WritePrivateProfileString(string section, string key, string val, string filePath); //section:ini文件中的段落;key:ini文件中的关键字;val:ini文件中关键字的数值;filepath:ini文件的完整的路径和名称 ... 阅读全文
posted @ 2012-08-26 13:32 一棍打出屁 阅读(174) 评论(0) 推荐(0) 编辑
摘要: using System.Security.Cryptography; public class DESEncrypt { #region ========加密======== /// <summary> /// 加密 /// </summary> /// <param name="Text"></param> /// <returns></returns> public static string Encrypt... 阅读全文
posted @ 2012-08-26 13:30 一棍打出屁 阅读(248) 评论(0) 推荐(0) 编辑
摘要: using System.Reflection; bool exist = false; //实体对象 object myResult = null; int _index = path.IndexOf("Combine"); foreach (object obj in objList) { if ((obj as RdoObject).rosPath == path) { ... 阅读全文
posted @ 2012-08-26 13:28 一棍打出屁 阅读(224) 评论(0) 推荐(0) 编辑
摘要: string parmes = ""; Process w = new Process(); //指定 调用程序的路径 w.StartInfo.FileName = Application.StartupPath + @"\xmlpkg.exe"; w.StartInfo.UseShellExecu 阅读全文
posted @ 2012-08-26 13:02 一棍打出屁 阅读(1128) 评论(0) 推荐(0) 编辑
摘要: sourcetree github 阅读全文
posted @ 2012-08-26 13:01 一棍打出屁 阅读(428) 评论(0) 推荐(0) 编辑
摘要: office:http://wiki.mikrotik.com/wiki/Manual:API author: Saturn login命令 /login ,登录命令 使用指定的ROS加密协议 /login=name=admin=response=001ea726ed53ae38520c8334f8 阅读全文
posted @ 2012-08-26 12:53 一棍打出屁 阅读(3016) 评论(0) 推荐(1) 编辑
摘要: 1. 模块 模块尽量使用小写命名,首字母保持小写,尽量不要用下划线(除非多个单词,且数量不多的情况) 2、类名类名使用驼峰(CamelCase)命名风格,首字母大写,私有类可用一个下划线开头 将相关的类和顶级函数放在同一个模块里. 不像Java, 没必要限制一个类一个模块. 3、函数函数名一律小写, 阅读全文
posted @ 2012-05-13 13:05 一棍打出屁 阅读(1860) 评论(0) 推荐(2) 编辑