private void addMenuAction(BAL.Types.Action action) { if (action.Visible) { var item = getMenuItem(null, action.ActionAttribute.Path); if (item != null) { item.Action = action; } } }
private void toolItem_Click(object sender, EventArgs e) { endEdit(); ToolStripItem item = sender as ToolStripItem; if (item != null && item.Tag != null) { BAL.Types.Action action = item.Tag as BAL.Types.Action; if (action != null) { action.Run(); } } }