街机游戏

疯狂英语900句

大学英语四级词汇

大学英语六级词汇

苍老师-美女刮刮

美女秀秀

炫酷2048

老外学汉语

随笔分类 -  C#

C# 2.0,3.0,3.5
摘要:partial class在自动化测试中的使用 Partial Class 简介 可以将类或结构、接口或方法的定义拆分到两个或多个源文件中。每个源文件包含类型或方法定义的一部分,编译应用程序时将把所有部分组合起来。 Partial Class 在那些情况下使用 在以下几种情况下需要拆分类定义: 1. 处理大型项目时,使一个类分布于多个独立文件中可以让多位程序员同时对该类进行处理。 2. 使用自动生成的源时,无需重新创建源文件便可将代码添加到类中。Visual Studio 在创建 Windows 窗体、Web 服务包装代码等时都使用此方法。无需修改 Visual Studio 创建的文件,就可创建使用这些类的代码。 阅读全文
posted @ 2009-12-15 21:57 开着拖拉机 阅读(621) 评论(0) 推荐(0)
摘要:CatalogApplication Domain Introduction. 1How to create and unloading Application Domain. 1How to Call Remote Application Domain Method. 2How to make Multiple applications in a single process running O... 阅读全文
posted @ 2009-09-19 21:10 开着拖拉机 阅读(1668) 评论(9) 推荐(2)
摘要:本文为转载文章:第一种:Alt + *(按钮快捷键) 在大家给button、label、menuStrip等控件设置Text属性时在名字后边加&键名就可以了,比如button1.text= "确定(&O)"。就会有快捷键了,这时候按Alt+O就可以执行按钮单击事件。第二种:Ctrl+*及其他组合键 在WinForm中设置要使用组合键的窗体的KeyPreview(向窗体注册键盘事件)... 阅读全文
posted @ 2009-07-25 23:36 开着拖拉机 阅读(5725) 评论(0) 推荐(0)
摘要:在构造方法中加上如下代码 public Form1(){ InitializeComponent(); SetStyle(ControlStyles.UserPaint, true); SetStyle(ControlStyles.AllPaintingInWmPaint, true); // 禁止擦除背景. SetStyle(ControlStyles.DoubleBuffer, true); ... 阅读全文
posted @ 2009-05-21 13:08 开着拖拉机 阅读(678) 评论(0) 推荐(0)
摘要:Implement and Call a Custom Extension MethodAuthor Kaden Kang 康翌2009-5-14How to Implement a Custom Extension Method1. Define a static class to contain the extension method.2. Create a static Method.3.... 阅读全文
posted @ 2009-05-14 14:53 开着拖拉机 阅读(261) 评论(0) 推荐(1)
摘要:The Generics in C# is that to operate many data types on the same code through parameterized type. Generic programming is a programming model, which used parameterized type to abstract the type for mo... 阅读全文
posted @ 2009-01-13 20:53 开着拖拉机 阅读(156) 评论(0) 推荐(0)

街机游戏

疯狂英语900句

大学英语四级词汇

大学英语六级词汇

苍老师-美女刮刮

美女秀秀

炫酷2048

老外学汉语