Contains the localized ActionText descriptions and templates.
Пример #1
0
 public void ActionText_GetActionData_Absent()
 {
     Assert.IsTrue(string.IsNullOrEmpty(ActionText.GetActionData("ShouldNotExist")));
 }
Пример #2
0
 public void ActionText_GetActionText()
 {
     Assert.IsFalse(string.IsNullOrEmpty(ActionText.GetActionText("InstallFiles")));
 }
Пример #3
0
        /// <summary>
        /// Gets the ActionText template for the given <paramref name="action"/>.
        /// </summary>
        /// <param name="action">The name of the action.</param>
        /// <param name="culture">The optional culture for which the ActionText template should be retrieved.</param>
        /// <returns>The ActionText template; otherwise, null if not found.</returns>
        internal static string GetActionData(string action, CultureInfo culture = null)
        {
            var resourceMan = ActionText.GetResourceManager(ref actionData, ResourceSet.ActionData);

            return(resourceMan.GetString(action, culture));
        }