private void ExecutePreviewOrder() { var orderOk = CheckOrderTerms(); if (orderOk) { PreviewSecurity = _portfolioManagementService.GetTradePreviewSecurity(_orderTickerText, SelectedSecurityType); if (PreviewSecurity is Stock) { PreviewPrice = PreviewSecurity.LastPrice; PreviewDescription = PreviewSecurity.Description; PreviewVolume = ((Stock)PreviewSecurity).Volume.ToString(); PreviewAsk = ((Stock)PreviewSecurity).Ask.ToString(); PreviewAskSize = ((Stock)PreviewSecurity).AskSize.ToString(); PreviewBid = ((Stock)PreviewSecurity).Bid.ToString(); PreviewBidSize = ((Stock)PreviewSecurity).BidSize.ToString(); } else if (PreviewSecurity is MutualFund) { PreviewPrice = PreviewSecurity.LastPrice; PreviewDescription = PreviewSecurity.Description; PreviewVolume = "Mutual Fund: No Volume"; PreviewAsk = "-"; PreviewAskSize = "-"; PreviewBid = "-"; PreviewBidSize = "-"; } AlertBoxVisible = false; ExecuteButtonEnabled = true; } else { SetAlertMessage(new TradeMessage(_orderTickerText, _orderShareQuantity)); AlertBoxVisible = true; OrderTermsOK = false; } }