private void AddAvailableAction(PXAction action, string shortcut, List <string> actions, List <string> actionNames, object row) { PXButtonState state = action.GetState(row) as PXButtonState; if (state == null || !state.Enabled) { return; } actions.Add(shortcut); actionNames.Add(state.DisplayName); }