Ejemplo n.º 1
0
 public void BuildStore()
 {
     MarketDB.Instance.InsertByForce();
     market      = MarketYard.Instance;
     handler     = StockSyncher.Instance;
     userService = market.GetUserService();
 }
Ejemplo n.º 2
0
 private string GetNextCategoryID()
 {
     if (globalCategoryID == -1)
     {
         globalCategoryID = StockSyncher.GetMaxEntityID(StoreDL.Instance.GetAllCategorysIDs());
     }
     globalCategoryID++;
     return("C" + globalCategoryID);
 }
Ejemplo n.º 3
0
 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();
 }
Ejemplo n.º 4
0
 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());
     }
 }