public void BuildStore() { MarketDB.Instance.InsertByForce(); market = MarketYard.Instance; handler = StockSyncher.Instance; userService = market.GetUserService(); }
private string GetNextCategoryID() { if (globalCategoryID == -1) { globalCategoryID = StockSyncher.GetMaxEntityID(StoreDL.Instance.GetAllCategorysIDs()); } globalCategoryID++; return("C" + globalCategoryID); }
public void MarketBuilder() { MarketDB.Instance.InsertByForce(); marketSession = MarketYard.Instance; userServiceSession = (UserService)marketSession.GetUserService(); userServiceSession.EnterSystem(); orderServiceSession = (OrderService)marketSession.GetOrderService(ref userServiceSession); storeServiceSession = StockSyncher.Instance; storeSyncherHarmony = new StoresSyncherHarmony(); }
public void UpdateLottery(string itemName, string store, double moenyPayed, string username, int cheatCode) { try { StockSyncher syncher = StockSyncher.Instance; syncher.UpdateLottery(store, itemName, moenyPayed, username, orderSyncher, cheatCode); } catch (StoreException e) { throw new OrderException(LotteryOrderStatus.InvalidLotteryTicket, e.GetErrorMessage()); } }