UCC:
public EventHandler btnclickFromUCC;
private void button1_Click(object sender, EventArgs e)
{
btnclickFromUCC.Invoke(sender, e);
}
UCB:
public UCB()
{
UCC.btnclickFromUCC+=btnfromUCC;
}
public EventHandler btnclickFromUCB;
private void btnfromUCC(object sender, EventArgs e)
{
btnclickFromUCB.Invoke(sender, e);
}
UCA:
public UCA()
{
UCB.btnclickFromUCB+=btnfromUCB;
}
private void btnfromUCB(object sender, EventArgs e)
{
if(panel.Visible)
panel.Visible=false;
else
panel.Visible=True;
}