public bool CheckCompatibility(CaseProperties @case) { foreach (PSUTypes type in @case.FormFactorPSU) { if (type == Properties.PSUType) { return(true); } } return(false); }
public bool CheckCompatibility(CaseProperties @case) { foreach (MotherboardTypes type in @case.FormFactor) { if (type == Properties.MotherboardType) { return(true); } } return(false); }
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); } }