Cleanup some items.
This commit is contained in:
@@ -162,8 +162,8 @@ namespace MarketData.Service
|
|||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.Append("/api/EconomicIndicators/GetDistinctEconomicIndicators?").Append("token=").Append(accessToken);
|
sb.Append("/api/EconomicIndicators/GetDistinctEconomicIndicators?").Append("token=").Append(accessToken);
|
||||||
String json = httpClient.GetStringAsync(sb.ToString()).Result;
|
String json = httpClient.GetStringAsync(sb.ToString()).Result;
|
||||||
List<String> priceIndices = JsonConvert.DeserializeObject<List<String>>(json);
|
List<String> indicatorCodes = JsonConvert.DeserializeObject<List<String>>(json);
|
||||||
return new ServiceResult(priceIndices);
|
return new ServiceResult(indicatorCodes);
|
||||||
}
|
}
|
||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -248,7 +248,12 @@ namespace MarketData.Utils
|
|||||||
public static String FormatNumberConstrain(double value,int places=1,bool commas=false)
|
public static String FormatNumberConstrain(double value,int places=1,bool commas=false)
|
||||||
{
|
{
|
||||||
String strValue=null;
|
String strValue=null;
|
||||||
if(value>=1000000000)
|
if(value>=1000000000000)
|
||||||
|
{
|
||||||
|
value/=1000000000000;
|
||||||
|
strValue=Utility.FormatNumber(value,places,commas)+"T";
|
||||||
|
}
|
||||||
|
else if(value>=1000000000)
|
||||||
{
|
{
|
||||||
value/=1000000000;
|
value/=1000000000;
|
||||||
strValue=Utility.FormatNumber(value,places,commas)+"B";
|
strValue=Utility.FormatNumber(value,places,commas)+"B";
|
||||||
|
|||||||
@@ -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.02" ForegroundColor="{StaticResource LightTextColor}" />
|
<Span Text="1.03" ForegroundColor="{StaticResource LightTextColor}" />
|
||||||
</FormattedString.Spans>
|
</FormattedString.Spans>
|
||||||
</FormattedString>
|
</FormattedString>
|
||||||
</Label.FormattedText>
|
</Label.FormattedText>
|
||||||
|
|||||||
Reference in New Issue
Block a user