Пример #1
0
 public void DisconnectStockServer()
 {
     if (IsConnected)
     {
         InformUser("Disconnecting ...");
         IsDisconnectedByUser = true;
         SmartComServer.CancelPortfolio(Portfolio);
         SmartComServer.disconnect();
     }
 }
Пример #2
0
 public void DisconnectStockServer()
 {
     try
     {
         if (IsConnected)
         {
             InformUser("Disconnecting ...");
             IsDisconnectedByUser = true;
             SmartComServer.CancelPortfolio(Portfolio);
             SmartComServer.disconnect();
         }
     } catch (Exception e)
     {
         throw new SmartException(e);
     }
 }