MaxShoshin / LoadingIndicator

Winforms long operation indicator.
MIT License
40 stars 12 forks source link

Support for displaying errors? #11

Open AlexanderDorofeev opened 2 years ago

AlexanderDorofeev commented 2 years ago

Hi Maxim, I've found this project helpfull for giving user feedback on controls when reading data takes some time. But we know, that sometimes operation may fail due to number of reasons. And we should give user a feedback in this situation too. Have you considered changing operation lifecycle like this: Start=>Run=>Fail=>Restart ? You can add error control similar to loding-indicator controls with error information and retry\cancel buttons. But I don't have any good thought on how to give consumer a control flow after failure except making fail method async, cos flow should be released when user clicks one of the buttons. Currently start\stop methods are just voids, so public interface of the class will be weirid. What do you think about that?

Thank you Alex

MaxShoshin commented 2 years ago

Hi Alex,

Could you provide more details?

As I understand - you can create your own wrapper to process failed state and display error information?

Or I miss something?

AlexanderDorofeev commented 2 years ago

image Yeah I want something like this. Sure wrapper is an option. But it would be nice to have this as a core functionality.

image