public void SetTenderInfo(AUCTION_REGISTER_INFO RegisterInfo) { this.m_lAuctionID = RegisterInfo.i64AuctionID; this.m_lPersonID = RegisterInfo.i64PersonID; this.m_lCurCostMoney = RegisterInfo.i64CostMoney; this.m_lCurDirectCostMoney = RegisterInfo.i64DirectCostMoney; this.m_iCurCostHearts = RegisterInfo.i32CostHearts; this.m_iCurDirectCostHearts = RegisterInfo.i32DirectCostHearts; if (0L < RegisterInfo.i64CostMoney) { this.m_lCostMoney = RegisterInfo.i64CostMoney; this.m_lCost = RegisterInfo.i64CostMoney; this.m_lbCost.SetText(ANNUALIZED.Convert(RegisterInfo.i64CostMoney)); this.m_lTenderCost = this.GetTenderCostMin(RegisterInfo.i64CostMoney); this.m_lbMyCost.SetText(ANNUALIZED.Convert(this.m_lTenderCost)); this.m_dtCostIcon1.SetTexture("Com_I_MoneyIconM"); this.m_dtCostIcon2.SetTexture("Com_I_MoneyIconM"); this.m_ePayType = AuctionDefine.ePAYTYPE.ePAYTYPE_GOLD; } else if (0 < RegisterInfo.i32CostHearts) { this.m_iCostHearts = RegisterInfo.i32CostHearts; this.m_lCost = (long)RegisterInfo.i32CostHearts; this.m_lbCost.SetText(ANNUALIZED.Convert(RegisterInfo.i32CostHearts)); this.m_lTenderCost = this.GetTenderCostMin((long)RegisterInfo.i32CostHearts); this.m_lbMyCost.SetText(ANNUALIZED.Convert(this.m_lTenderCost)); this.m_dtCostIcon1.SetTexture("Win_I_Hearts"); this.m_dtCostIcon2.SetTexture("Win_I_Hearts"); this.m_ePayType = AuctionDefine.ePAYTYPE.ePAYTYPE_HEARTS; } }
public void SetTenderInfo(AUCTION_REGISTER_INFO RegisterInfo) { this.m_lAuctionID = RegisterInfo.i64AuctionID; if (0L < RegisterInfo.i64DirectCostMoney) { this.m_lDirectCostMoney = RegisterInfo.i64DirectCostMoney; this.m_lbDirectCost.SetText(ANNUALIZED.Convert(this.m_lDirectCostMoney)); this.m_dtCostIcon.SetTexture("Com_I_MoneyIconM"); this.m_ePayType = AuctionDefine.ePAYTYPE.ePAYTYPE_GOLD; } else if (0 < RegisterInfo.i32DirectCostHearts) { this.m_iDirectCostHearts = RegisterInfo.i32DirectCostHearts; this.m_lbDirectCost.SetText(ANNUALIZED.Convert(this.m_iDirectCostHearts)); this.m_dtCostIcon.SetTexture("Win_I_Hearts"); this.m_ePayType = AuctionDefine.ePAYTYPE.ePAYTYPE_HEARTS; } }