示例#1
0
 private void addMenuAction(BAL.Types.Action action)
 {
     if (action.Visible)
     {
         var item = getMenuItem(null, action.ActionAttribute.Path);
         if (item != null)
         {
             item.Action = action;
         }
     }
 }
示例#2
0
        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();
                }
            }
        }