예제 #1
0
 public static MarsCode GetInstance()
 {
     if (instance == null)
     {
         instance = new MarsCode();
     }
     return(instance);
 }
예제 #2
0
        public QRCodeBase GetCodeType(TypeCode_enum typeBot)
        {
            //if (!PostParams.P_I.BlCimOn)
            //    return null;
            //TODO
            switch (typeBot)
            {
            case TypeCode_enum.SVH:
                return(SVHCode.GetInstance());

            case TypeCode_enum.VY:
                return(VYCode.GetInstance());

            case TypeCode_enum.Mars:
                return(MarsCode.GetInstance());

            case TypeCode_enum.TW_SVH:
                return(TW_SVH.GetInstance());

            default:
                return(SVHCode.GetInstance());
            }
        }