public void DisconnectStockServer() { if (IsConnected) { InformUser("Disconnecting ..."); IsDisconnectedByUser = true; SmartComServer.CancelPortfolio(Portfolio); SmartComServer.disconnect(); } }
public void DisconnectStockServer() { try { if (IsConnected) { InformUser("Disconnecting ..."); IsDisconnectedByUser = true; SmartComServer.CancelPortfolio(Portfolio); SmartComServer.disconnect(); } } catch (Exception e) { throw new SmartException(e); } }