public string GetPowerSupply(EAdapterType type)
        {
            switch (type)
            {
            case EAdapterType.ClassAdapter:
            {
                CylindricalClassAdapter adapter = new CylindricalClassAdapter();
                return(adapter.GetPowerSupply(firstWire, secondWire));
            }

            case EAdapterType.ObjectAdapter:
            {
                CylindricalObjectAdapter adapter = new CylindricalObjectAdapter();
                return(adapter.GetPowerSupply(firstWire, secondWire));
            }
            }

            return(null);
        }
        public string GetPowerSupply(EAdapterType type)
        {
            string power = "";

            switch (type)
            {
            case EAdapterType.eClassAdapter:
                CylindricalClassAdapter classAdapter = new CylindricalClassAdapter();
                power = classAdapter.GetPowerSupply(FirstWire, SecondWire);
                break;

            case EAdapterType.eObjectAdapter:
                CylindricalObjectAdapter objectAdapter = new CylindricalObjectAdapter();
                power = objectAdapter.GetPowerSupply(FirstWire, SecondWire);
                break;

            default:
                break;
            }
            return(power);
        }
        public string GetPowerSupply(EAdapterType type)
        {
            string power = null;

            switch (type)
            {
            case EAdapterType.eClassAdapter:
                CylindricalClassAdapter classAdapter = new CylindricalClassAdapter();
                power = classAdapter.GetPowerSupply(_firstWire, _secondWire);
                break;

            case EAdapterType.eObjectAdapter:
                CylindricalObjectAdapter objectAdapter = new CylindricalObjectAdapter(new RectangularSocket());
                power = objectAdapter.GetPowerSupply(_firstWire, _secondWire);
                break;

            default:
                power = "Error!";
                break;
            }

            return(power);
        }