Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Transaction(TransactionMode.ReadOnly)]
- public class Command : IExternalCommand
- {
- public Result Execute(
- ExternalCommandData commandData,
- ref string message,
- ElementSet elements)
- {
- DisplayUnitType n
- = DisplayUnitType.DUT_GALLONS_US;
- string valid_unit_symbols;
- for (DisplayUnitType i = DisplayUnitType
- .DUT_METERS; i < n; ++i)
- {
- var validUnitSymbols = FormatOptions.GetValidUnitSymbols(i);
- foreach (var validUnitSymbol in validUnitSymbols)
- {
- if (validUnitSymbol != UnitSymbolType.UST_NONE)
- {
- var abbrUnitTypeLabel = LabelUtils.GetLabelFor(validUnitSymbol);
- Debug.Print("{0} - {1}", abbrUnitTypeLabel, LabelUtils.GetLabelFor(i));
- }
- }
- }
- return Result.Succeeded;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement