随笔分类 - 麻烦解决者
利用飞信给自己发短信的shell脚本
摘要:利用飞信给自己发短信的shell脚本翻译自一个python脚本因为openwrt要装python太大了.所以用了两天非工作时间 翻译成了 shell脚本 .测试可用.http://dl.dbank.com/c030f0gldi#!/bin/sh#Convert Python Fetion To Shell @2012user='xxxxxxxxx' #飞信账号 一般是你的手机号password='xxxxx' #飞信密码,但愿只有你自己知道.loginstatus='4' url_login='http://f.10086.cn/im/l
阅读全文
ust install win7 en follow the steps below after the error occurs
摘要:Insert Win 7 installation DVD and boot from DVD drive. While in some older systems you may have to change boot order through system BIOS, most newer systems allow booting from DVD without changing boot order by simply clicking on any key when prompted to doing so. Step 2 Choose your default "..
阅读全文
(转) datagridview数据的实时验证
摘要:先简单描述下我对DataGridView的数据访问的机制以及事件触发的先后顺序的理解。 1、DataGridView后台应该对应一个二维数组; 2、当选中某个单元格后,根据ColumnType属性指定的DataGridViewColumn类型创建EditingControl,将当前单元格的值赋给EditingControl,同时触发CellBeginEdit事件; 3、当EditingControl.Text发生变化后,触发CurrentCellDirtyStateChanged事件, 4、如果在该事件中添加DataGridView.Commit()方法,将变化的内容提交到DataGr...
阅读全文
string.Format 格式说明
摘要:(转)格式说明stringstr1 =string.Format("{0:N1}",56789); //result: 56,789.0stringstr2 =string.Format("{0:N2}",56789); //result: 56,789.00stringstr3 =string.Format("{0:N3}",56789); //result: 56,789.000stringstr8 =string.Format("{0:F1}",56789); //result: 56789.0strings
阅读全文
(转).net 异步处理 UI响应
摘要:一. 概述在使用C#进行应用程序设计时,经常会采用多线程的方式进行一些后台任务的工作。对于不同的应用场景,使用的策略也不尽相同。1. 后台循环任务,少量UI更新:例如批量上传文件,并提供进度。这种情况使用BackgroundWorker组件是非常好的选择。2. 耗时的后台任务:这里的耗时任务是指一个时间较长的任务,并且不能精确获取进度,如:调用一个远程WebService接口。这种情况可以开两个线程,一个工作,一个更新UI(不能提供进度,只能显示动画表示系统在运行中)。3. 耗时的UI任务:当工作压力集中在UI响应上时,可以在工作者线程中增加延时,从而让UI线程获得响应时间。整个工作的总体时间
阅读全文
datatable computer 的使用(转载)
摘要:(原文)http://www.cnblogs.com/chinafine/archive/2008/08/23/1274700.html这个是我的问题解决的源代码ImportsSystem.LinqImportsSystem.DataPublicClassForm1PrivateSubForm1_Load(ByValsenderAsSystem.Object,ByValeAsSystem.EventArgs)HandlesMyBase.LoadDimsql=NewSqlHelper.DataBaseHelperDimds=sql.ExecQuery("SELECTP_DPRES_TY
阅读全文
浙公网安备 33010602011771号