I am fairly new to c#. I have one winform with 2 buttons on it. button1_click() generates some data say data1, data2, data3, data4. Now I want to use this data in button2_click():
private void button1_click(object sender, EventArgs e)
{
//generate data1, data2, data3, data4..
}
private void button2_click(object sender, EventArgs e)
{
//do processing using data1, data2, data3, data4..
}
I assume this should be relatively simple to do in c# without using files and such. I understand I can pass arguments using a custom class derived from EvenArgs, but I need to get hold of the data first before i can pass it.