コード例 #1
0
ファイル: Market.cs プロジェクト: Vzepic/New-T-Bot-with-phone
        public Market CopyToMarket(TennisPrices.VjekosMarket MarketToCopy)
        {
            this.BackAAmount = MarketToCopy.BackAAmount.ToList();
            this.BackAPrice  = MarketToCopy.BackAPrice.ToList();
            this.BackBAmount = MarketToCopy.BackBAmount.ToList();
            this.BackBPrice  = MarketToCopy.BackBPrice.ToList();
            this.LayAAmount  = MarketToCopy.LayAAmount.ToList();
            this.LayAPrice   = MarketToCopy.LayAPrice.ToList();
            this.LayBAmount  = MarketToCopy.LayBAmount.ToList();
            this.LayBPrice   = MarketToCopy.LayBPrice.ToList();

            return(this);
        }
コード例 #2
0
ファイル: Market.cs プロジェクト: Vzepic/New-T-Bot-with-phone
        public TennisPrices.VjekosMarket CopyToVM()
        {
            TennisPrices.VjekosMarket Result = new TennisPrices.VjekosMarket();
            Result.BackAPrice  = this.BackAPrice.ToList();
            Result.BackAAmount = this.BackAAmount.ToList();
            Result.BackBAmount = this.BackBAmount.ToList();
            Result.BackBPrice  = this.BackBPrice.ToList();
            Result.LayAAmount  = this.LayAAmount.ToList();
            Result.LayAPrice   = this.LayAPrice.ToList();
            Result.LayBAmount  = this.LayBAmount.ToList();
            Result.LayBPrice   = this.LayBPrice.ToList();

            return(Result);
        }