日期:2014-05-18  浏览次数:21081 次

VB中的HANDLES在C#中怎么写?
vb中的代码如下:
Public Class Class1
  Inherite Player
  ......
   
  Private Sub ChoosePoint() Handles Me.ChoosePointEvent
  Me.PointWanted=New Point(2,3)
  End Sub
End Class

以上代码如果用C#,应该怎么写呢?



------解决方案--------------------
this.ChoosePointEvent += new ChoosePointEventHandler(this.ChoosePoint);