I have a List View element listViewMedia
in one class and want to update it with data from another file (Strings, basically)
so, i have created a public method
public void addToListViewMedia()
{
listViewMedia.Items.Add(new ListViewItem("datafromotherfile"));
}
in the first class to add data, but I cannot access it from the other class. What am I doing wrong? I already tried accessing the element directly by setting it to public itself, but that didn't work out either, not to mention the crappy style that would bring to my code. Updating it from the same class is working, btw...