Esempio n. 1
0
 private void ExecuteDeleteLimitOrder()
 {
     if (SelectedLimitOrder != null)
     {
         LimitOrderList.Remove(SelectedLimitOrder);
         SelectedLimitOrder = null;
     }
     else
     {
         var alertMessage = @"Notification: Please select a limit order to delete.";
         SetAlertMessage(alertMessage);
     }
 }
Esempio n. 2
0
 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));
     }
 }