05 2008 档案

windows mobile中使用datagrid绑定并显示数据及得到界面显示的数据值
摘要:1 绑定数据源,设置显示列和显示格式等 if (ds!= null) { this.dataGrid_Fix.DataSource = ds; } DataGridTableStyle ts = new DataGridTableStyle(); ts.MappingName = "Table1"; DataGridColumnStyle ID = new DataGridTextBoxColum... 阅读全文

posted @ 2008-05-23 11:32 优雅小猪 阅读(6328) 评论(1) 推荐(0)

判断字符串中是否含有汉字
摘要:1.判断是否含有汉字using System.Text.RegularExpressions;if (Regex.IsMatch("abc->", @"[\u4e00-\u9fa5]+")){Console.WriteLine("字符串中有汉字");}else{Console.WriteLine("字符串中无汉字");}2判断字符串是否全为汉字if (Regex.IsMatch("我你a",... 阅读全文

posted @ 2008-05-22 14:43 优雅小猪 阅读(1251) 评论(0) 推荐(0)

windows mobile中签字
摘要:鼠标(手写笔)轨迹坐标记录,然后画很多短的线一:建立一个类,代表线段的两个端点(之所以用线段是由于需要连续的效果,否则如果鼠标移动的太快的话,会有断断续续的现象)public class DrawLine {private int _x1; private int _y1; private int _x2; private int _y2; public DrawLine(int X1, int ... 阅读全文

posted @ 2008-05-21 16:38 优雅小猪 阅读(207) 评论(0) 推荐(0)

导航