Rename Form.OnClosing/OnClosed to OnFormClosing/OnFormClosed (WFDEV004)

Proprietary

Renames Form.OnClosing to OnFormClosing and Form.OnClosed to OnFormClosed for .NET 10 compatibility. Parameter type changes (CancelEventArgs → FormClosingEventArgs, EventArgs → FormClosedEventArgs) must be updated manually.

OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net10.FormOnClosingRename
mod run . --recipe=OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net10.FormOnClosingRename

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.