class Child
{
private override void Check_CheckedChanged(object sender, EventArgs e)
{
if (Check.Checked)
{
this.addName(this.FirstName);
this.disableControls();
}
else
{
this.addAddress(this.address);
//this.activatecontrols();// gives error since it's private method in parent.
}
}
}
class Parent
{
private void Check_CheckedChanged(object sender, EventArgs e)
{
if (Check.Checked)
{
this.disablecontrols();
}
else
{
this.addAddress(this.address);
this.activatecontrols();
}
}
}
I want to fire the the child event if it satisfies if condition. But if can not I need to call the base's else condition as I activatecontrols() is private in Parent. So, how do I call the event?