Winforms long operation indicator.
- Stop keyboard/mouse action until operation complete
- Show loading indicator only if operation is really long (by default 700ms)
- If loading indicator is shown and operation is just completed, prolong this operation to minimum show indicator time (300ms by default) to awoid flickr
- When operation is really long greyscale and blur parent controls, display colorized loading indicator on top
- Ability to change color of loading indicator
- Ability to fully change indicator control
privateLongOperation_longOperation;publicMainForm(){InitializeComponents();// Initialize long operation with control which will// be overlayed during long operations_longOperation=newLongOperation(this);// You can pass settings to customize indicator view/behavior// _longOperation = new LongOperation(this, LongOperationSettings.Default);}publicasyncvodDoSomethingLongClick(objectsender,EventArgse){using(_longOperation.Start()){awaitDoSomethingLongAsync();}}Indicator shown:
Before:


