Friday, May 8, 2015

How to refresh Form1 from inside a class?

Great stuff.

I only mentioned the messenger thing just in case you knew about passing in the form and that was the issue.

Often difficult to tell what sort of complexity level to pitch at.

Bear in mind though that passing a reference into a constructor is introducing a dependency.

(  No Sh*t Sherlock ! ?   ).

This is often considered a bad idea because of the risk of references between objects keeping something "alive" you really want dead and garbage collected.

When you use that technique with more than 2 layers/clases like say menu > form > class

This can go pear shaped pretty quick.

Just throw that one to the back of your mind for later.


Hope that helps.

Technet articles: Uneventful MVVM; All my Technet Articles

No comments:

Post a Comment