Esempio n. 1
0
        public static short CloseCard(int[] card)
        {
            short ret  = 0;
            short ret1 = 0;

            tag_NewCtrlCardBase[(int)MotionCardManufacturer.MotionCardManufacturer_8940]   = new NewCtrlCard_ZWX8940();
            tag_NewCtrlCardBase[(int)MotionCardManufacturer.MotionCardManufacturer_8960m]  = new NewCtrlCard_ZWX8690m();
            tag_NewCtrlCardBase[(int)MotionCardManufacturer.MotionCardManufacturer_IO3224] = new NewCtrlCard_IO3224();

            tag_NewCtrlCardBase[(int)MotionCardManufacturer.MotionCardManufacturer_DMC3800] = new NewCtrlCard_DMC3000(8, 0);
            tag_NewCtrlCardBase[(int)MotionCardManufacturer.MotionCardManufacturer_DMC3600] = new NewCtrlCard_DMC3000(6, 1);
            tag_NewCtrlCardBase[(int)MotionCardManufacturer.MotionCardManufacturer_DMC3400] = new NewCtrlCard_DMC3000(4, 2);

            tag_NewCtrlCardBase[(int)MotionCardManufacturer.MotionCardManufacturer_DMC1000B] = new NewCtrlCard_DMC1000B(4);

            for (int i = 0; i < (int)(MotionCardManufacturer.MotionCardManufacturer_max); i++)
            {
                if (card[i] == 0)
                {
                    continue;
                }
                NewCtrlCardBase Base_ = tag_NewCtrlCardBase[i];
                if (Base_.SR_Close != null && Base_.SR_Close != null)
                {
                    ret = Base_.SR_Close();
                }
            }
            tag_isInit = 0;
            return(ret1);
        }