上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 24 下一页
弹窗居中显示,using (DlgProgressBar progressBar = new DlgProgressBar(0, 10)){progressBar.StartPosition = FormStartPosition.CenterScreen; progressBar.Show(dlg.Owner);Application.DoEvents(); } Read More
posted @ 2012-07-11 17:28 咸鱼公子 Views(185) Comments(0) Diggs(0) Edit
==========================================================yield关健字var q = GetNums(5); public static IEnumerable GetNums(int nums) { int result = 0; for (int i = 0; i < nums; i++) { result = i; yield return result; } }结果输出0,1,2,3,4五个数msdnyield keyword signals to the compiler that the method in whi Read More
posted @ 2012-06-08 11:34 咸鱼公子 Views(219) Comments(0) Diggs(0) Edit
最近写了一个采集器可以采集京东所有的商品信息如:产品详情(价格)、用户评论、用户信息等。----------------------------评论数据截图------------------------------用户信息-----------------------------------------------------------------产品信息 Read More
posted @ 2012-05-31 17:41 咸鱼公子 Views(707) Comments(4) Diggs(1) Edit
public void RefTest() { MessageBox.Show("fu"); } public void RefStaticTest() { MessageBox.Show("fu"); } private void button4_Click(object sender, EventArgs e) { Assembly asm = Assembly.Load("ExcelTOXML"); Type tp = asm.GetType("ExcelTOXML.Form1");// var q = tp Read More
posted @ 2012-05-29 11:48 咸鱼公子 Views(185) Comments(0) Diggs(0) Edit
换了工作单位,离住的地方有点远,13公里的样子,每天要挤公交车啊~有时候挤不上去有时候贴在公交的门上,非常可怜的一直站到终点站再导车。每天都有些老头老太太上车,挤不上还不干,上来自然要有人给它们让座啊,它们有老年证。。。。啥叫早高峰???早上从7点到9这是属于早高峰啊,这些老太太老大爷上来干啥?我是观察了很久了:有的是去钓鱼,有的是去公园玩、溜湾,有些是去超市门口排队买便宜鸡蛋的。。。。。。。还有很多,很多原因。有些人有估计要吐血了,咱小老百姓上个班容易吗?这些老东西偏在要这个早高峰来挤。不给让座显得没有传统美德,如果让座打心里觉得不值。就不能避开早高峰吗?送一个字:贱! Read More
posted @ 2012-05-29 10:11 咸鱼公子 Views(749) Comments(1) Diggs(2) Edit
因为要做一个排序功能,弄了很久自带的功能都没法弄出来,最后自己写了一个方法来实现绑定数据的时候用泛型,拖动的时候获到到选中的行和要上目行上的行号,再使用下面的方法注册事件protectedoverridevoidOnLoad(EventArgse){base.OnLoad(e);//添加事件this.gridControl1.DragOver+=newSystem.Windows.Forms.DragEventHandler(this.gridControl1_DragOver);this.gridControl1.DragDrop+=newSystem.Windows.Forms.DragE Read More
posted @ 2012-05-28 17:11 咸鱼公子 Views(2341) Comments(0) Diggs(0) Edit
并行开发/运行public void ParalleTest() { //invoke,for和forEach。 Parallel.Invoke(CheckOrder, CheckOrder); Parallel.For(0, 20000000, i => { // do sth }); Parallel.ForEach(Partitioner.Create(0, 20000000), i => { for (int m = i.Item1; m < i.Item2; m++) { // do sth } }); } Read More
posted @ 2012-05-23 15:24 咸鱼公子 Views(292) Comments(0) Diggs(0) Edit
子窗口private void btn_OK_Click(object sender, EventArgs e) { this.DialogResult = System.Windows.Forms.DialogResult.OK; } private void btn_Cancel_Click(object sender, EventArgs e) { this.Close(); }父窗口 Form4 f4 = new Form4(); //f4.Location = Point point = this.Location; point.X += 220; point.Y -=330; f4 Read More
posted @ 2012-05-16 11:46 咸鱼公子 Views(227) Comments(0) Diggs(0) Edit
TcxGridAlign 设置控件的排列方式。 alBottom:相对于父容器为底端对齐排列。 alClient:相对于父容器为剩余部分完全覆盖排列。 alCustom:相对于父容器为自定义对齐排列。 alLeft:相对于父容器为左端对齐排列。 alNone:默认对齐排列。 alRight:相对于父容器为右端对齐排列。 alTop:相对于父容器为顶端对齐排列。AlignWithMargins设置控件与其父容器之间的间隙。Anchors 设置控件的对齐方式。akLeft 当其父容器大小改变时,控件左端相对于父容器左端的位置不变。akTop 当其父容器大小改变时,控件顶端相对于父容器顶端的位置不变 Read More
posted @ 2012-05-15 16:46 咸鱼公子 Views(2295) Comments(0) Diggs(0) Edit
//加载xml数据 private void buttonX1_Click(object sender, EventArgs e) { //读取xml //BuildDataGrid(GetObjectArrayList(@"E:\TDDOWNLOAD\设计模式\AbstractFactory\ObjectIdentity\xml\"), this.tabControlPanel1); // BuildDataGrid(GetObjectArrayList(@"E:\TDDOWNLOAD\设计模式\AbstractFactory\ObjectIdentity\xm Read More
posted @ 2012-05-03 15:50 咸鱼公子 Views(2907) Comments(1) Diggs(0) Edit
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 24 下一页