Esempio n. 1
0
        public static Comparison<Auction> getComparison(AuctionHouse.SortMode mode) {
            switch(mode) {
            case AuctionHouse.SortMode.CARD:
                return CompareCardName;

            case AuctionHouse.SortMode.PRICE:
                return ComparePrice;

            case AuctionHouse.SortMode.SELLER:
                return CompareSellerName;

            case AuctionHouse.SortMode.TIME:
                return CompareTime;

            case AuctionHouse.SortMode.CARD_REVERSE:
                return CompareCardNameREV;

            case AuctionHouse.SortMode.PRICE_REVERSE:
                return ComparePriceREV;

            case AuctionHouse.SortMode.SELLER_REVERSE:
                return CompareSellerNameREV;

            case AuctionHouse.SortMode.TIME_REVERSE:
                return CompareTimeREV;

            default:
                return CompareCardName;
            }
        }
Esempio n. 2
0
 private AuctionHouseUI()
 {
     this.helpf = Helpfunktions.Instance;
     this.recto = Rectomat.Instance;
     this.prcs = Prices.Instance;
     this.crdvwr = Cardviewer.Instance;
     this.srchsvr = Searchsettings.Instance;
     this.sttngs = Settings.Instance;
     this.ah = AuctionHouse.Instance;
     this.ps = PlayerStore.Instance;
     this.gglthngs = GetGoogleThings.Instance;
 }
Esempio n. 3
0
 public void setSellSortMode(AuctionHouse.SortMode sortMode)
 {
     this.sellSortMode = sortMode;
 }