public async Task SetWatchFormatAsync(string id, WatchFormat format)
{
var formatString = "natural";
switch (format)
{
case WatchFormat.Binary:
formatString = "binary";
break;
case WatchFormat.Decimal:
formatString = "decimal";
break;
case WatchFormat.Hexadecimal:
formatString = "hexadecimal";
break;
case WatchFormat.Octal:
formatString = "octal";
break;
}
await new VarSetFormatCommand(id, formatString).Execute(this);
}