private static string GetLczStringValue(UserConnection userConnection, string lczName)
        {
            string localizableStringName = string.Format("LocalizableStrings.{0}.Value", lczName);
            var    localizableString     = new LocalizableString(userConnection.Workspace.ResourceStorage,
                                                                 "BpmonlineCloudEngine", localizableStringName);
            string value = localizableString.Value;

            if (value.IsNullOrEmpty())
            {
                value = localizableString.GetCultureValue(GeneralResourceStorage.DefCulture, false);
            }
            return(value);
        }
コード例 #2
0
        /// <summary>
        /// Returns localizable value from resource storage.
        /// </summary>
        /// <param name="lczName">Name of string in resource file.</param>
        /// <param name="resourceManagerName">Name of resource manager.</param>
        /// <param name="userConnection">Instance of user connection.</param>
        /// <returns>Localizable value from resource storage.</returns>
        public static string GetLczStringValue(string lczName, string resourceManagerName, UserConnection userConnection)
        {
            string localizableStringName = string.Format("LocalizableStrings.{0}.Value", lczName);
            var    localizableString     = new LocalizableString(
                userConnection.Workspace.ResourceStorage, resourceManagerName, localizableStringName);
            string value = localizableString.Value;

            if (value == null)
            {
                value = localizableString.GetCultureValue(GeneralResourceStorage.DefCulture, false);
            }
            return(value);
        }
コード例 #3
0
        private string GetLczStringValue(string lczName)
        {
            string localizableStringName = string.Format("LocalizableStrings.{0}.Value", lczName);
            var    localizableString     = new LocalizableString(
                _userConnection.Workspace.ResourceStorage, "DeduplicationSearch", localizableStringName);
            string value = localizableString.Value;

            if (value.IsNullOrEmpty())
            {
                value = localizableString.GetCultureValue(GeneralResourceStorage.DefCulture, false);
            }
            return(value);
        }
コード例 #4
0
        private string GetLczStringValue(string lczName)
        {
            string localizableStringName = string.Format("LocalizableStrings.{0}.Value", lczName);
            var    localizableString     = new LocalizableString(
                UserConnection.Workspace.ResourceStorage, "MandrillService", localizableStringName);
            string value = localizableString.Value;

            if (value == null)
            {
                value = localizableString.GetCultureValue(GeneralResourceStorage.DefCulture, false);
            }
            return(value);
        }
        private string GetLczStringValue(string lczName)
        {
            string localizableStringName = string.Format("LocalizableStrings.{0}.Value", lczName);
            var    localizableString     = new LocalizableString(Context.UserConnection.Workspace.ResourceStorage,
                                                                 nameof(DCEnabledStrategiesAnalyzationRule), localizableStringName);
            string value = localizableString.Value;

            if (value == null)
            {
                value = localizableString.GetCultureValue(GeneralResourceStorage.DefCulture, false);
            }
            return(value);
        }