Change display of Bollinger Band Price

This commit is contained in:
2025-12-01 19:47:04 -05:00
parent 827aefd1a2
commit 7c6dd32b81
3 changed files with 11 additions and 1 deletions

View File

@@ -15,6 +15,7 @@ namespace Navigator.ViewModels
private String ipAddress; private String ipAddress;
private RelayCommand ipAddressCommand; private RelayCommand ipAddressCommand;
private RelayCommand onResetCommand; private RelayCommand onResetCommand;
private static readonly String VERSION = "1.0.0.5";
public AboutViewModel() public AboutViewModel()
{ {
@@ -130,6 +131,13 @@ namespace Navigator.ViewModels
} }
} }
public String Version
{
get
{
return VERSION;
}
}
public String ScreenDimensions public String ScreenDimensions
{ {

View File

@@ -129,8 +129,10 @@ namespace Navigator.ViewModels
if(null!=currentPrice&&!float.IsNaN(change)) if(null!=currentPrice&&!float.IsNaN(change))
{ {
sb.Append(" (").Append(Utility.FormatCurrency(currentPrice.Close)); sb.Append(" (").Append(Utility.FormatCurrency(currentPrice.Close));
sb.Append("(C)");
sb.Append("/"); sb.Append("/");
sb.Append(" ").Append(Utility.FormatCurrency(currentPrice.Low)); sb.Append(" ").Append(Utility.FormatCurrency(currentPrice.Low));
sb.Append("(L)");
sb.Append(","); sb.Append(",");
sb.Append(change>=0.00?"+":"").Append(Utility.FormatPercent((double)change)); sb.Append(change>=0.00?"+":"").Append(Utility.FormatPercent((double)change));
sb.Append(")"); sb.Append(")");

View File

@@ -41,7 +41,7 @@
<FormattedString.Spans> <FormattedString.Spans>
<Span Text="Navigator" FontAttributes="Bold" FontSize="22" /> <Span Text="Navigator" FontAttributes="Bold" FontSize="22" />
<Span Text=" " /> <Span Text=" " />
<Span Text="1.03" ForegroundColor="{StaticResource LightTextColor}" /> <Span Text="{Binding Version,Mode=OneWay}" ForegroundColor="{StaticResource LightTextColor}" />
</FormattedString.Spans> </FormattedString.Spans>
</FormattedString> </FormattedString>
</Label.FormattedText> </Label.FormattedText>