Use ContextMenuStrip for an inline NotifyIcon menu

Proprietary

Migrate an attributed NotifyIcon.ContextMenu assignment whose entire menu is built inline from fresh MenuItem instances. Supports literal captions, separators, and inline click lambdas that do not use their sender or event arguments. Shared items, custom initializers, named arguments, comments inside the allocation, and unresolved APIs are left for review.

OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net3_1.UseInlineNotifyIconContextMenuStrip
mod run . --recipe=OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net3_1.UseInlineNotifyIconContextMenuStrip

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