コード例 #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);
        }
コード例 #2
0
 public static bool AllComponents(ComponentWrapper component, ReferenceInfo info)
 {
     if (!DefaultComponents(component, info))
     {
         return(false);
     }
     return(component.Checked);
 }
コード例 #3
0
 public static bool AddComponentDefault(ComponentWrapper component, ReferenceInfo info)
 {
     return(true);
 }
コード例 #4
0
 private static bool DefaultComponents(ComponentWrapper component, ReferenceInfo info)
 {
     return(component.ComponentType == ComponentTypeWrapper.LibraryCategory);
 }
コード例 #5
0
 private static bool DefaultComponents(ComponentWrapper component, ReferenceInfo info)
 {
     return(component.ComponentType == ComponentTypeWrapper.Feature);
 }