Hello,
I have a simple app with a MainForm that sometimes opens a second form. I have a Data Access Layer Class .cs and that has try catch statements. On a catch I call another class method logError.
Since logError can be called by any thread or from the 2 forms, it's in a separate class on its own.
What I would like is that if logError is called (meaning I have a DB connection problem) I would like to updade a control on the MainForm to indicate a Error Status.
I've looked at delegates etc, but everything is Form related, while what I need is to call a form control for an independent class function.
What would be an appropriate way to achieve this?
Thanks,