public void Buy(DepositContent content, MarketState marketstate, int stockstobuy) { try { Deposit.Buy(content, marketstate, stockstobuy); } catch (System.Exception ex) { throw ex; } }
public void Sell(DepositContent content, MarketState marketstate, int stockstosell) { try { Deposit.Sell(content, marketstate, stockstosell); } catch (System.Exception ex) { throw ex; } }
public void ClientBuyingStocks(Version clientversion, ICommunicateable communicator, string stockid, Player player) { try { if (clientversion.Major > 0) { lock (SynchronizeRoot) { DepositContent content = null; if (player.Deposit.TryGetValue(stockid, out content)) { content.ServerBuyStocks(clientversion, communicator); } } } } catch (System.Exception ex) { throw ex; } }