Esempio n. 1
0
        public static void Initialize() {
            configFileHandler = new ConfigFileHandler(ConstDef.WEDO_MSGR_DIR, ConstDef.WEDO_CLIENT_EXE);

            serverIp = configFileHandler.GetValue("ServerIp");
            socketPortCrm = Convert.ToInt16(configFileHandler.GetValue("SocketPortCrm"));
            socketPortFtp = Convert.ToInt16(configFileHandler.GetValue("SocketPortFtp"));
            socketPortMsgr = Convert.ToInt16(configFileHandler.GetValue("SocketPortMsgr"));
            id = configFileHandler.GetValue("MyId");
            extension = configFileHandler.GetValue("PhoneExtension"); 
            pass = configFileHandler.GetValue("MyPass");
            customColor = configFileHandler.GetValue("CustomColor");
            customFont = configFileHandler.GetValue("CustomFont");
            savePass = (configFileHandler.GetValue("SaveMyPass").Equals(CommonDef.TRUE));
            noPopOutBound = (configFileHandler.GetValue("NoPopUpOnCallOutBound").Equals(CommonDef.TRUE));
            topMost = (configFileHandler.GetValue("TopMost").Equals(CommonDef.TRUE));
            noPop = (configFileHandler.GetValue("NoPopUpOnCall").Equals(CommonDef.TRUE));
            autoStart = (configFileHandler.GetValue("AutoStart").Equals(CommonDef.TRUE));
            dbServerIp = configFileHandler.GetValue("DbServerIp");
            dbPort = Convert.ToInt16(configFileHandler.GetValue("DbPort"));
            promotionUrl = configFileHandler.GetValue("PromotionUrl");
        }
 public ServerConfigController()
 {
     configFileHandler = new ConfigFileHandler(ConstDef.WEDO_SERVER_DIR, ConstDef.WEDO_SERVER_EXE);
 }