Exemple #1
0
        public static bool CanAdd()
        {
            bool IsEnabled = false;

            if (License.PortfolioCount >= 0)
            {
                DataTable dt = DBProjectGroup.GetProjectGroupsDT(Security.CurrentUser.TimeZoneId);
                IsEnabled = (dt.Rows.Count < License.PortfolioCount);
            }
            else
            {
                IsEnabled = true;
            }

            return(CanUpdate() && IsEnabled);
        }
Exemple #2
0
 public static DataTable GetProjectGroupsDT()
 {
     return(DBProjectGroup.GetProjectGroupsDT(User.DefaultTimeZoneId));
 }