Warning provider v 2.1

Warning provider v 2.1

Old forum URL: forums.lhotka.net/forums/t/1554.aspx


SealedClassSingleton posted on Friday, October 20, 2006

Hi,

Does anyone has any suggestions how to displays the warnings in 2.1 (e.g. an "warning" provider similar to an error provider on a similar IDataError interface) or do I have to write a method to loop over the Brokenrules collections and trying to locate the binded controls to do something with them ?

Any suggestions are welcome...

Bart

Brian Criswell replied on Friday, October 20, 2006

At the moment I think your only recourse is the error tree control that Xal added to CSLAcontrib.  But a single ErrorProvider-like component that handled all three would be interesting...

xal replied on Friday, October 20, 2006

It's on my todo list... Wink [;)]

Andrés

SealedClassSingleton replied on Friday, October 20, 2006

That would be nice !

Thx

Michael Hildner replied on Saturday, October 21, 2006

I think it's a great idea. I can imagine dragging an "ErrorWarningInfoProvider" on my form, set the DataSource and pick my icons.

Do you have any thoughts on how you would implement? I'm curious.

I started looking at this today, looking at the code of the ErrorProvider (via Reflector) to see if I could extend it somehow. It seems geared to a single Error. I'm not sure if extending it would work, but I don't know. Not that they have convienent overridable methods.

On the CSLA end, Core.BusinessBase implements IDataErrorInfo. That seems to be in line with the single Error string. It seems that the .NET types are not set up for more than just an error.

Just fishing for thoughts,

Mike

 

Mike.Smith replied on Saturday, February 10, 2007

Did anyone ever get a chance to work this out? It sounds exactly like what I am after.

The Warning/Info stuff is great but how are you all using them in the UI?

Thanks in advance,

Mike

Brian Criswell replied on Saturday, February 10, 2007

Xal placed a file in CSLAcontrib.

xal replied on Saturday, February 10, 2007

Well, I haven't gotten to do the CslaErrorProvider yet, what you can use for now is the error treeview I added to cslacontrib in codeplex...
(You can search this forum for a direct link to the download...)

Andrés

Copyright (c) Marimer LLC