dotnet / winforms

Windows Forms is a .NET UI framework for building Windows desktop applications.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduce Analyzers for correctly guiding the handling of modal dialogs

KlausLoeffelmann opened this issue · comments

The handling of modal Dialogs can be completely implemented just by configuring them correctly in the Designer. There is no need to handle an OK_Click or a Cancel_Click event or even close the Dialog manually. (Although, the calling instance need to Dispose them manually!)

We should consider Analyzers for ensuring best practices here.