private void ExecuteDeleteLimitOrder() { if (SelectedLimitOrder != null) { LimitOrderList.Remove(SelectedLimitOrder); SelectedLimitOrder = null; } else { var alertMessage = @"Notification: Please select a limit order to delete."; SetAlertMessage(alertMessage); } }
public void ExecuteDeleteLimitOrder() { if (SelectedLimitOrder != null) { LimitOrderList.Remove(SelectedLimitOrder); SelectedLimitOrder = null; } else { var errorMessage = @"Notification: Please select a limit order to delete."; Messenger.Default.Send(new TradeMessage("X", 0, errorMessage)); } }