I have List<Basket> sas = new List<Basket>();
in Form1.
And i need to output all values from this List in another form.
Edited: Now i have problem with outputing.
List<Basket> sas = new List<Basket>();
public Form1()
{
InitializeComponent();
foreach(Basket e in sas)
{
basketBox.Text += e.Name + Environment.NewLine;
}
}
I added elements in Form2, but when I try to output them in Form1 nothing happened.