Exemple #1
0
        public static bool UnresolvedComponents(ComponentWrapper component, ReferenceInfo info)
        {
            if (!DefaultComponents(component, info))
            {
                return(false);
            }
            bool result = false;

            if (component.Checked)
            {
                result = true;
                ReferenceData refData = info[component];
                foreach (ComponentWrapper library in refData.Realization)
                {
                    if (library.ComponentType == ComponentTypeWrapper.Library)
                    {
                        if (library.Checked)
                        {
                            result = false;
                            break;
                        }
                    }
                }
            }
            return(result);
        }
Exemple #2
0
 public static bool AllComponents(ComponentWrapper component, ReferenceInfo info)
 {
     if (!DefaultComponents(component, info))
     {
         return(false);
     }
     return(component.Checked);
 }
Exemple #3
0
 public static bool AddComponentDefault(ComponentWrapper component, ReferenceInfo info)
 {
     return(true);
 }
Exemple #4
0
 private static bool DefaultComponents(ComponentWrapper component, ReferenceInfo info)
 {
     return(component.ComponentType == ComponentTypeWrapper.LibraryCategory);
 }
Exemple #5
0
 private static bool DefaultComponents(ComponentWrapper component, ReferenceInfo info)
 {
     return(component.ComponentType == ComponentTypeWrapper.Feature);
 }