Beispiel #1
0
 protected bool IsDisableAction(PointActionItemAttribute action)
 {
     if (PointActionType.DisableActions.Contains(action.Action))
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
        protected string GetNeedValueActionName(string action)
        {
            PointActionItemAttribute item = PointActionType.NeedValueActionAttributes[action];

            if (item != null)
            {
                return(item.ActionName);
            }
            else
            {
                return(string.Empty);
            }
        }
Beispiel #3
0
        protected bool IsShow(PointActionItemAttribute action)
        {
            if (IsDisableAction(action) == false)
            {
                int[] points = GetPoints(action.Action);
                foreach (int point in points)
                {
                    if (point != 0)
                    {
                        return(true);
                    }
                }
            }

            return(false);
        }