Ejemplo n.º 1
0
        public static FullScreenConfigBO getFullScreenConfigBO()
        {
            FullScreenConfigBO fBO = new FullScreenConfigBO();
            bool isImg             = InIHelper.ReadConfig <bool>(fBO.key, "isImg");

            fBO.isImg = isImg;
            string backgroundColor = InIHelper.ReadConfig <string>(fBO.key, "backgroundColor");

            if (backgroundColor != null && backgroundColor != "")
            {
                fBO.backgroundColor = ColorTranslator.FromHtml(backgroundColor);
            }
            string backgroundImg = InIHelper.ReadConfig <string>(fBO.key, "backgroundImg");

            if (File.Exists(backgroundImg))
            {
                fBO.backgroundImg = backgroundImg;
            }
            string transparency = InIHelper.ReadConfig <string>(fBO.key, "transparency");

            if (transparency != null && transparency != "")
            {
                fBO.transparency = Int32.Parse(transparency);
            }
            fBO.offTaskManager = InIHelper.ReadConfig <bool>(fBO.key, "offTaskManager");
            return(fBO);
        }
Ejemplo n.º 2
0
        public static OperatingConfigBO getOperatingConfigBO()
        {
            OperatingConfigBO oBO = new OperatingConfigBO();

            oBO.isRecording = InIHelper.ReadConfig <bool>(oBO.key, "isRecording");
            oBO.isFrequency = InIHelper.ReadConfig <bool>(oBO.key, "isFrequency");
            int frequency = InIHelper.ReadConfig <int>(oBO.key, "frequency");

            oBO.frequency        = frequency == 0 ? 1 : frequency;
            oBO.isFinalProcedure = InIHelper.ReadConfig <bool>(oBO.key, "isFinalProcedure");
            string finalProcedure = InIHelper.ReadConfig <string>(oBO.key, "finalProcedure");

            if (finalProcedure != null && finalProcedure != "")
            {
                oBO.finalProcedure = finalProcedure;
            }
            return(oBO);
        }
        public static PasswordConfigBO getPasswordConfigBO()
        {
            PasswordConfigBO tmp = new PasswordConfigBO();

            tmp.isDefaultPassword = InIHelper.ReadConfig <bool>(tmp.key, "isDefaultPassword");
            string defaultPassword = InIHelper.ReadConfig <string>(tmp.key, "defaultPassword");

            if (defaultPassword != null && defaultPassword != "")
            {
                tmp.defaultPassword = DesHelper.Decode(defaultPassword);
            }
            tmp.isPasswordPrompt = InIHelper.ReadConfig <bool>(tmp.key, "isPasswordPrompt");
            string passwordPrompt = InIHelper.ReadConfig <string>(tmp.key, "passwordPrompt");

            if (passwordPrompt != null && passwordPrompt != "")
            {
                tmp.passwordPrompt = passwordPrompt;
            }
            tmp.enterDirectly = InIHelper.ReadConfig <bool>(tmp.key, "enterDirectly");
            return(tmp);
        }