Esempio n. 1
0
        public bool CheckCompatibility(CaseProperties @case)
        {
            foreach (PSUTypes type in @case.FormFactorPSU)
            {
                if (type == Properties.PSUType)
                {
                    return(true);
                }
            }

            return(false);
        }
Esempio n. 2
0
        public bool CheckCompatibility(CaseProperties @case)
        {
            foreach (MotherboardTypes type in @case.FormFactor)
            {
                if (type == Properties.MotherboardType)
                {
                    return(true);
                }
            }

            return(false);
        }
Esempio n. 3
0
 public int Compatibility(MotherboardProperties motherboard, CaseProperties @case)
 {
     if (Properties.Interface == InputInterfaces.USB)
     {
         return(motherboard.USB2_0 + motherboard.USB3_0 + @case.USB2_0 + @case.USB3_0);
     }
     else if (Properties.Interface == InputInterfaces.PSby2 && motherboard.PS2Keyboard)
     {
         return(1);
     }
     else
     {
         return(0);
     }
 }