随笔分类 -  C#-基本操作

摘要:http://www.lxway.com/852960566.htm 阅读全文
posted @ 2016-03-07 17:35 人生为卒 阅读(153) 评论(0) 推荐(0)
摘要:http://www.itnose.net/detail/6132793.html 阅读全文
posted @ 2016-02-15 17:12 人生为卒 阅读(133) 评论(0) 推荐(0)
摘要:Dll : AutoUpdate.dll 配置文件 /// <summary> /// 自动更新检测及更新 /// </summary> private void updJudge() { try { AutoUpdate.AppUpdater ft = new AutoUpdate.AppUpda 阅读全文
posted @ 2016-02-01 10:44 人生为卒 阅读(228) 评论(0) 推荐(0)
摘要:http://www.cnblogs.com/supperwu/archive/2012/06/13/2548122.html #region 筛选方法 (目前方法3最实用,其他方法待调查) ... 阅读全文
posted @ 2016-01-25 14:09 人生为卒 阅读(1068) 评论(0) 推荐(0)
摘要:编程中的一些概念,KISS、DRY、MVC、OOP、RESTKISS、DRY、MVC、OOP、REST(1)KISS是指Keep It Simple,Stupid(摘自wikipedia),指设计时要坚持简约原则,避免不必要的复杂化。(2)DRY是指Don't Repeat Yourself(摘自w... 阅读全文
posted @ 2015-12-31 10:33 人生为卒 阅读(348) 评论(0) 推荐(0)
摘要:http://blog.csdn.net/cjsafty/article/details/6662205svn回到历史的某个版本在代码的编写过程中,难免有些错误需要修改,或者想从以前的文件进行代码修改,这样就涉及到版本的追踪,如果你以前提交时日志写的非常清楚,那版本追踪回滚起来就事半功倍、得心应手。... 阅读全文
posted @ 2015-12-29 11:29 人生为卒 阅读(2215) 评论(0) 推荐(0)
摘要:相关: http://blog.sina.com.cn/s/blog_45c379c001016d7u.htmlDLL :备注: 1、运行TTSrepair.exe,修护系统语音功能。(确保系统语音相关组件能正常使用) 2、添加 Interop.SpeechLib.dll 和Spee... 阅读全文
posted @ 2015-12-25 14:29 人生为卒 阅读(1035) 评论(0) 推荐(0)
摘要:http://www.it165.net/pro/html/201404/11512.html 阅读全文
posted @ 2015-12-17 16:36 人生为卒 阅读(144) 评论(0) 推荐(0)
摘要:/// /// 判断DataTale中判断某个字段中包含某个数据 /// /// /// /// /// public static Boolean IsColumnIncl... 阅读全文
posted @ 2015-12-16 09:39 人生为卒 阅读(341) 评论(0) 推荐(0)
摘要:在基类(父类)中用virtual修饰符声明一个虚方法,然后在在派生类(子类)中用override修饰符覆盖基类虚方法。表明是对基类的虚方法重载。这种优势在于它可以在程序运行时再决定调用哪一个方法,这就是所谓的“运行时多态”或者称动态绑定。 阅读全文
posted @ 2015-12-15 09:39 人生为卒 阅读(207) 评论(0) 推荐(0)
摘要:public enum testenum{ aa, bb, cc, dd};//遍历枚举foreach (testenum item in Enum.GetValues(typeof(testenum))){}Enum.GetValues(typeof(枚举的名称));可以获得指定枚举... 阅读全文
posted @ 2015-12-02 15:53 人生为卒 阅读(150) 评论(0) 推荐(0)
摘要:条件运算符 (?:) 根据 Boolean 表达式的值返回两个值之一。https://msdn.microsoft.com/zh-cn/library/ty67wk28.aspxcondition ? first_expression : second_expression;condition的计算... 阅读全文
posted @ 2015-11-30 15:06 人生为卒 阅读(576) 评论(0) 推荐(0)
摘要:dll:// C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.dll方法 1: /// /// 是否能 Ping 通指定的主机 ... 阅读全文
posted @ 2015-11-11 17:01 人生为卒 阅读(2420) 评论(0) 推荐(0)
摘要:Environment.NewLine字段a+Environment.NewLine+字段b 运行=字段a字段b 阅读全文
posted @ 2015-11-11 11:25 人生为卒 阅读(178) 评论(0) 推荐(0)
摘要:http://zhidao.baidu.com/link?url=bgTvGFrn_zu8eR6AzfdfscQ12F5jEqhbWcgxf_kDSuXrQg1O_3zdksyH9hrz0Mn1VD_Nf0SASPO0_8ZjjVOURqv1gZw2wKxAbmiA798JlPC方法 1: vi... 阅读全文
posted @ 2015-11-03 08:52 人生为卒 阅读(307) 评论(0) 推荐(0)
摘要://将输入的小写转换为大写 private void txtstockout_id_KeyPress(object sender, KeyPressEventArgs e) { //将输入的小写转换为大写 if ((i... 阅读全文
posted @ 2015-10-21 16:56 人生为卒 阅读(4048) 评论(0) 推荐(0)
摘要:///变量定义 private System.Windows.Forms.Button printButton; private System.Drawing.Font printFont; private StreamReader strea... 阅读全文
posted @ 2015-10-14 13:53 人生为卒 阅读(192) 评论(0) 推荐(0)
摘要:项目属性设置:右键项目-属性-程序集信息 阅读全文
posted @ 2015-10-06 10:19 人生为卒 阅读(913) 评论(0) 推荐(0)
摘要://mscorlib.dll, v4.0.0.0&&Microsoft.Office.Interop.Excel.dll, v14.0.0.0/// /// 导出Excel /// /// 要导出的数据表public void ExcelPort(Dat... 阅读全文
posted @ 2015-09-30 08:57 人生为卒 阅读(335) 评论(0) 推荐(0)