Beispiel #1
0
        public static string DirectoryPath()
        {
            string result = "c:\totvs";

            Tag tag = new Tag("Path", "");

            result = ConfigAction.TagValue(Path.Combine(Directory.GetCurrentDirectory(), "RMTools.exe.config"), tag);
            if (result == "0")
            {
                CreateAppConfig();
                result = DirectoryPath();
            }
            return(result);
        }
Beispiel #2
0
        public static void UpdateTags()
        {
            InitTags();
            string pathRMExeConfig = Path.Combine(Ambiente.Selected.pathRmnet, "RM.exe.config");
            string pathHostConfig  = Path.Combine(Ambiente.Selected.pathRmnet, "RM.Host.Service.exe.config");

            _actionsPath.Value               = ConfigAction.TagValue(pathRMExeConfig, _actionsPath);
            _apiPort.Value                   = ConfigAction.TagValue(pathHostConfig, _apiPort);
            _enableCompression.Value         = ConfigAction.TagValue(pathRMExeConfig, _enableCompression);
            _enableDynamicLocalization.Value = ConfigAction.TagValue(pathRMExeConfig, _enableDynamicLocalization);
            _host.Value                = ConfigAction.TagValue(pathRMExeConfig, _host);
            _httpPort.Value            = ConfigAction.TagValue(pathHostConfig, _httpPort);
            _jobServer3Camadas.Value   = ConfigAction.TagValue(pathRMExeConfig, _jobServer3Camadas);
            _libPath.Value             = ConfigAction.TagValue(pathRMExeConfig, _libPath);
            _localizationLaguage.Value = ConfigAction.TagValue(pathRMExeConfig, _localizationLaguage);
            _port.Value                = ConfigAction.TagValue(pathHostConfig, _port);
            _traceFileRMExe.Value      = ConfigAction.TagValue(pathRMExeConfig, _traceFileRMExe);
            _traceFileHost.Value       = ConfigAction.TagValue(pathHostConfig, _traceFileHost);
            _traceLs.Value             = ConfigAction.TagValue(pathHostConfig, _traceLs);
            _configPath.Value          = ConfigAction.TagValue(pathRMExeConfig, _configPath);
            _updateServer.Value        = ConfigAction.TagValue(pathRMExeConfig, _updateServer);
            _updateServerEnabled.Value = ConfigAction.TagValue(pathHostConfig, _updateServerEnabled);
            _defaultDb.Value           = ConfigAction.TagValue(pathHostConfig, _defaultDb);
            _fileServerPath.Value      = ConfigAction.TagValue(pathHostConfig, _fileServerPath);

            ActionsPath               = _actionsPath.Value;
            ApiPort                   = _apiPort.Value;
            EnableCompression         = ConvertBooleanValue(_enableCompression.Value);
            EnableDynamicLocalization = ConvertBooleanValue(_enableDynamicLocalization.Value);
            Host                = _host.Value;
            HttpPort            = _httpPort.Value;
            JobServer3Camadas   = ConvertBooleanValue(_jobServer3Camadas.Value);
            LibPath             = _libPath.Value;
            LocalizationLaguage = _localizationLaguage.Value;
            Port                = _port.Value;
            TraceFileHost       = ConvertBooleanValue(_traceFileHost.Value);
            TraceFileRMExe      = ConvertBooleanValue(_traceFileRMExe.Value);
            TraceLs             = ConvertBooleanValue(_traceLs.Value);
            ConfigPath          = _configPath.Value;
            DefaultDb           = _defaultDb.Value;
            UpdateServer        = _updateServer.Value;
            UpdateServerEnabled = ConvertBooleanValue(_updateServerEnabled.Value);
            FileServerPath      = _fileServerPath.Value;
        }