コード例 #1
0
        public void initalizeState()
        {
            switch (crtState)
            {
            case ARstate.AR_Adventure:
                arAdv = new AR_Adventure();
                break;

            case ARstate.AR_Conception:
                arConception = new AR_Conception();
                break;

            case ARstate.AR_Continue:
                arContinue = new AR_Continue();
                break;

            case ARstate.AR_Launch:
                arLaunch = new AR_Launch();
                break;

            case ARstate.AR_Leave:
                arLeave = new AR_Leave();
                break;

            case ARstate.AR_Main:
                arMain = new AR_Main();
                break;

            case ARstate.AR_Profile:
                arProfile = new AR_Profile();
                break;

            case ARstate.AR_Start:
                arStart = new AR_Start();
                break;

            case ARstate.AR_Options:
                arOptions = new AR_Options();
                break;

            case ARstate.TestTri:
                testTri = new TestTri();
                break;

            case ARstate.TestBill:
                testBill = new TestBill();
                break;

            case ARstate.Test_v1:
                test_v1 = new Test_v1();
                break;
            }
        }
コード例 #2
0
        public AR_Options GetAR_Options(string moduleCode)
        {
            AR_Options arOpt = null;

            lock (_locker)
            {
                arOpt =
                    _database.Table <AR_Options>().Where(
                        ao => (ao.ModuleCode == moduleCode)
                        ).FirstOrDefault();
            }

            return(arOpt);
        }