在a类中,我这样写的,是在点击button按钮的时候写的
B b = new B();
b.onClient += new b.onClientList(obj_onClient);private void obj_onClient()
{
MessageBox.show("1");
}在b类中,我订阅了事件
public delegate void onClientList();
public event onClientList onClient;
然后在toolbar按钮的时候
switch (e.Button.Text)
{
case "添加":
  Add();
  break;
         。
         。
         case "关闭":
  if(this.onClient != null)
  {
    this.frm.Close();
  }
  break;
我想在b类中,关闭的时候,a类触发事件,我是上面这样写的,但是每次调试的时候,总是提示
this.onClient为未定义的值,是怎么一回事啊??
是不是我事件委托理解错误了?还是哪里没注意,请各位大哥帮忙了,谢谢!!