Exemplo n.º 1
0
        /// <summary>
        /// 初始化培训场景UI
        /// </summary>
        public void initTrainUI(string equipName, string flow, TrainMode trainMode)
        {
            //tabStrip.init(1, tabStripClick);
            //tabStrip.setTabActiveState(1);
            currentEquipName      = equipName;
            this.currentTrainFlow = flow;
            this.currentTrainMode = trainMode;
            index = (int)currentTrainMode;
            dynamiclistUI.reset();
            dynamiclistUI.resetPostion();
            flowOperateMenu.initFlowMenu(flowOperateMenuClick, currentTrainMode);
            initToolMenu();
            toolMenu.canelHindTool();
            uitool.setPauseBtnClick(pauseMovie);
            uitool.setReturnBtnClick(backMenu);
            uitool.setRatateBtnClick(afreshTrain);
            uitool.setNextBtnClick(setNextClick);
            uitool.setPreBtnClick(setBackClick);
            nextProcess.setNoSwitchClick(noBtnClick);
            nextProcess.setYesSwitchClick(yesBtnClick);
            count = flowOperateMenu.getflows().Count;
            if (gradeManager == null)
            {
                gradeManager = new TLGradeManager();
            }
            ExamSubject subject = gradeManager.getExamSubject(flow);

            if (!subject.IsExam)
            {
                tabStrip.setTabDisableState(2);
            }
            //isExam = false;
            //initTrainMode(trainMode);
            popwindow.init();
        }