title: How to implement Ignore/Retry/Cancel pattern for an action?
body: <p>I have a two layered Windows-Forms application developed by C#.NET 4.0 . In this APP i read a file content and create a list of entities in Data-Access-Layer, and return it to GUI-Layer to show in a grid view. In my current logic, if one of the lines in the file has corrupted or bad-formatted (that i can't create an entity from it) or any other exceptions, i throw an exception and abort the process. Now, how can i implement an Ignore/Retry/Cancel pattern? I mean what is the best way to show an Ignore/Retry/Cancel dialog box and do whatever user wants (eg. ignore the current line and goto next line, cancel the process, or retry the current failed line read) ? is there any pattern for it?</p>