예제 #1
0
        public static ICustomary GetCustom(CustomEnum customEnum)
        {
            switch (customEnum)
            {
            case CustomEnum.AFN:
                custom = new CustomAFN();
                break;

            case CustomEnum.RTV:
                custom = new CustomRTV();
                break;

            default:
                custom = new CustomDefault();
                break;
            }
            return(custom);
        }
예제 #2
0
        public static ICustomary GetCustom(MachineSelection customEnum)
        {
            switch (customEnum)
            {
            case MachineSelection.AFN:
                custom = new CustomAFN();
                break;

            case MachineSelection.RTV:
                custom = new CustomRTV();
                break;

            case MachineSelection.YBSX:
                custom = new Custom银宝山();
                break;

            default:
                custom = new CustomDefault();
                break;
            }
            return(custom);
        }