Hi,
I have two classes (ClassA and ClassB),
public ClassA {
public ClassA() {
this.MyButton.C licked += new
System.EventHan dler(this.MyBut ton_Click);
}
private void MyButton_Click( object sender, System.EventArg s e) {
MyFunc();
}
protected void MyFunc() {
}
}
public ClassB : ClassA {
.... some functions
}
What I need is, once the event is fired in ClassA, how can I make
inherited classes (e.g ClassB) to know base class fires an event?
--
WWW: http://hardywang.1accesshost.com
ICQ: 3359839
yours Hardy
I have two classes (ClassA and ClassB),
public ClassA {
public ClassA() {
this.MyButton.C licked += new
System.EventHan dler(this.MyBut ton_Click);
}
private void MyButton_Click( object sender, System.EventArg s e) {
MyFunc();
}
protected void MyFunc() {
}
}
public ClassB : ClassA {
.... some functions
}
What I need is, once the event is fired in ClassA, how can I make
inherited classes (e.g ClassB) to know base class fires an event?
--
WWW: http://hardywang.1accesshost.com
ICQ: 3359839
yours Hardy
Comment