Ejemplo n.º 1
0
        public bool HasObjectDependencies(string strObjectDependencies)
        {
            if (strObjectDependencies.IndexOf(",") > -1)
            {
                string[] a;
                a = strObjectDependencies.ToLower().Split(',');
                int i;
                for (i = 0; i <= a.Length - 1; i++)
                {
                    if (a[i] == strObjectDependencies.ToLower())
                    {
                        return(true);
                    }
                }
            }
            else
            {
                if (ObjectDependencies.ToLower().IndexOf(strObjectDependencies.ToLower()) > -1)
                {
                    return(true);
                }
            }

            return(false);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Determines whether [has object dependencies] [the specified STR object dependencies].
 /// </summary>
 /// <param name="strObjectDependencies">The STR object dependencies.</param>
 /// <returns>
 ///     <c>true</c> if [has object dependencies] [the specified STR object dependencies]; otherwise, <c>false</c>.
 /// </returns>
 public bool HasObjectDependencies(string strObjectDependencies)
 {
     // See if we need to test against multiple dependancies (passed in)
     if (strObjectDependencies.IndexOf(",") > -1)
     {
         string[] a = null;
         a = strObjectDependencies.ToLower().Split(',');
         for (int i = 0; i < a.Length; i++)
         {
             // See if the passed dependancy clashes with this item's dependancies
             if (ObjectDependencies.ToLower().IndexOf(a[i]) > -1)
             {
                 return(true);
             }
         }
     }
     else
     {
         if (ObjectDependencies.ToLower().IndexOf(strObjectDependencies) > -1)
         {
             return(true);
         }
     }
     return(false);
 }