摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;//抽象类的一个实例namespace Abstruct{ abstract class Abclass { public v... 阅读全文
posted @ 2015-09-09 10:14 Alfred.Xu 阅读(108) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;//静态类用static标记//静态类的成员必须都是静态的//静态类是密封的,不可继承namespace StaticClass{ p... 阅读全文
posted @ 2015-09-09 10:13 Alfred.Xu 阅读(193) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Runtime.InteropServices;using System.Text;/** 外部方法是在声明中没有实现的方法,常常是C#之外的编程语言编写的。* 1、用extern修饰符标记,在类的声明中没有实现,它的实现被分号取代* 2、声明和实... 阅读全文
posted @ 2015-09-09 10:12 Alfred.Xu 阅读(628) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;/** 扩展方法允许编写和声明它的类之外的类关联的方法* 1、扩展方法必须声明为static* 2、扩展方法声明所在的类也必须声明为st... 阅读全文
posted @ 2015-09-09 10:12 Alfred.Xu 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 反射,取得字段与方法 阅读全文
posted @ 2015-09-08 20:42 Alfred.Xu 阅读(694) 评论(0) 推荐(0) 编辑
摘要: Gridviewcontrol控件在事件处理函数中取得当前行的某列的值:string buyPlanId = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "BuyPlanId").ToString();int buyState = Co... 阅读全文
posted @ 2015-09-02 17:16 Alfred.Xu 阅读(686) 评论(0) 推荐(0) 编辑
摘要: 在查询的结果中增加一列作为总金额:dt_detail.Columns.Add("预计总价", typeof(decimal)); for (int i = 0; i < dt_detail.Rows.Count; i++) { dt_detail.Rows[i]["... 阅读全文
posted @ 2015-09-02 15:57 Alfred.Xu 阅读(342) 评论(0) 推荐(0) 编辑
摘要: public bool UpdateCodeBak(string OrderExId, params string[] CodeBak) { bool bo = false; StringBuilder set=new StringBuilder(); Syst... 阅读全文
posted @ 2015-09-02 15:56 Alfred.Xu 阅读(201) 评论(0) 推荐(0) 编辑
摘要: winform的隐藏与展开 阅读全文
posted @ 2015-08-26 17:59 Alfred.Xu 阅读(528) 评论(0) 推荐(0) 编辑
摘要: tablelayoutpanel的高度和宽度运行时调整 ,以及在布局中的相关事项 阅读全文
posted @ 2015-08-26 17:42 Alfred.Xu 阅读(388) 评论(0) 推荐(0) 编辑