public void loadDataLocal() { TickerConnection tickerConnection = new TickerConnection(); this.listTicker = tickerConnection.getAllTicker(); listenChange(); }
public bool updateTicker(TickerInfo ticker, String id) { TickerConnection tickerConnection = new TickerConnection(); bool result = tickerConnection.updateInfoTicker(ticker, id); if (result) { loadDataLocal(); return(true); } return(false); }
public bool removeTicker(TickerInfo ticker) { TickerConnection tickerConnection = new TickerConnection(); bool result = tickerConnection.deleteTicker(ticker); if (result) { loadDataLocal(); return(true); } return(false); }