Adxstudio.Xrm.Visualizations.CrmChart.GetLocalizedLabel(Microsoft.Xrm.Sdk.Label)

Here are the examples of the csharp api class Adxstudio.Xrm.Visualizations.CrmChart.GetLocalizedLabel(Microsoft.Xrm.Sdk.Label) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Example 7

1. Example

Project: xRM-Portals-Community-Edition
Source File: CrmChart.cs
private string GetOptionSetValueLabel(OptionSetMetadata optionSet, string optionSetValue)
		{
			int value;

			if (!int.TryParse(optionSetValue, NumberStyles.Any, CultureInfo.InvariantCulture, out value))
			{
				return optionSetValue;
			}

			var option = optionSet.Options.FirstOrDefault(e => e.Value == value);

			if (option == null)
			{
				return optionSetValue;
			}

			return this.GetLocalizedLabel(option.Label);
		}