private void ItemMenuActionPowerOnClick(object sender, EventArgs e) { if (!(sender is ToolStripMenuItem menu)) { return; } if (!(menu.Tag is StatePowerScheme tag)) { return; } Power.ActionPowerScheme(tag); }