I know there are a lot of threads talking about this and believe me I\'ve seen all of them, but I think I\'m a little slow and cant figure out how to do this so here is the thin
Changing the label in that manner is not a good idea and violates some programming paradigms. Generally, the underlying business logic classes are not supposed to directly manipulate the UI.
The form contains an instance of adi. So, short of passing the form's instance (ie. this
) to the adi
constructor (or to the paso method), you're kinda sunk.
Better to use some kind of event that adi can fire when it needs Form1
to change its display.
http://msdn.microsoft.com/en-us/library/aa645739(v=vs.71).aspx