diff --git a/UIUtils/ClosePositionDialog.xaml.cs b/UIUtils/ClosePositionDialog.xaml.cs index 875b7f7..4ee9b80 100644 --- a/UIUtils/ClosePositionDialog.xaml.cs +++ b/UIUtils/ClosePositionDialog.xaml.cs @@ -195,7 +195,7 @@ namespace TradeBlotter.UIUtils private void UpdateSellPrice() { - txtSellPrice.Text=Utility.FormatCurrency(SellPrice); + txtSellPrice.Text=Utility.FormatCurrency(SellPrice,3); } private void UpdateCompanyName() diff --git a/UIUtils/ClosePositionDialogNoStop.xaml.cs b/UIUtils/ClosePositionDialogNoStop.xaml.cs index c1b3f12..51039a0 100644 --- a/UIUtils/ClosePositionDialogNoStop.xaml.cs +++ b/UIUtils/ClosePositionDialogNoStop.xaml.cs @@ -190,7 +190,7 @@ namespace TradeBlotter.UIUtils private void UpdateSellPrice() { - txtSellPrice.Text=Utility.FormatCurrency(SellPrice); + txtSellPrice.Text=Utility.FormatCurrency(SellPrice,3); } private void UpdateCompanyName() diff --git a/UIUtils/EditPositionDialog.xaml.cs b/UIUtils/EditPositionDialog.xaml.cs index b8ac4eb..90bf137 100644 --- a/UIUtils/EditPositionDialog.xaml.cs +++ b/UIUtils/EditPositionDialog.xaml.cs @@ -125,7 +125,7 @@ namespace TradeBlotter.UIUtils } private void UpdatePurchasePrice() { - txtPurchasePrice.Text=Utility.FormatCurrency(PurchasePrice); + txtPurchasePrice.Text=Utility.FormatCurrency(PurchasePrice,3); } // ******************************************************************************************************************************************************************************* // ********************************************************************************** I N I T I A L S T O P R E C O M M E N D A T I O N ************************************** diff --git a/UIUtils/EditPositionDialogNoStop.xaml.cs b/UIUtils/EditPositionDialogNoStop.xaml.cs index 470a50f..be1b446 100644 --- a/UIUtils/EditPositionDialogNoStop.xaml.cs +++ b/UIUtils/EditPositionDialogNoStop.xaml.cs @@ -111,7 +111,7 @@ namespace TradeBlotter.UIUtils } private void UpdatePurchasePrice() { - txtPurchasePrice.Text=Utility.FormatCurrency(PurchasePrice); + txtPurchasePrice.Text=Utility.FormatCurrency(PurchasePrice,3); } // ********************************************************************************************************************************************************************************* private void dpPurchaseDate_SelectionChanged(object sender,RoutedEventArgs e)