摘要: 1privatevoidallRulesGrid_KeyDown(objectSender,KeyEventArgse)2{3if(e.Modifiers.CompareTo(Keys.Control)==0&&e.KeyCode==Keys.C)4{5CopyData();6}7elseif(e.Modifiers.CompareTo(Keys.Control)==0&&e.KeyCode==Keys.V)8{9PasteData();10}11} 阅读全文
posted @ 2012-03-14 15:45 船夫水手 阅读(725) 评论(0) 推荐(0) 编辑
摘要: MemberwiseClone method creates a shallow copy by creating a new object, and then copying the nonstatic fields of the current object to the new object.' data-guid="8516ab7c11913671ad3f7017cfb81753">MemberwiseClone方法创建一个浅表副本,方法是创建一个新对象,然后将当前对象的非静态字段复制到该新对象。如果字段是值类型的,则对该字段执行逐位复制。如果字段是引 阅读全文
posted @ 2012-03-14 15:34 船夫水手 阅读(313) 评论(0) 推荐(0) 编辑