I have a class (class1)
in this class i have a function and anther class:
class2 _class2 = new class2();
protected void Button_Click(object sender, EventArgs e)
{
//do something
}
Now I have another class (class2)
that have a button in it
I want to send the button the function (Button_Click) so i can insert it to
the button event click
(button.click +=)
the class2 build multiple buttons in a loop for class1,
i want that when some one click one of the buttons it will go to the event function (Button_Click) in
class 1
I hope I was clear
Thanks for your help
Change
protected void Button_Clicktopublic void Button_Click.Then from somewhere else, go: