ToolStripMenuItem
and the base type Control
both contain the property Enabled
.
I need to pass both types to a function such as EnableItems(multipleItems);
, but I am not able to find a common base that contain the Enabled
property.
Label
or LinkLabel
inherit from Control
(which are typically the types I want to switch from "not enabled" to "enabled").
Is there any way to do this with out of the box features in c#?