private static string GetTitle (Automotive data) { return "• " + data.ShipmentInfo.LowerPrice.ID + " - " + UITools.GetAbbreviation (data.ShipmentInfo.SourceRegion) + "-" + UITools.GetAbbreviation (data.ShipmentInfo.PostRegion) + "/$"; }
public void SetUp (Automotive data) { myTransform.localScale = Vector3.one; details.text = data.ShipmentInfo.GetDetails; SetStars (data.ShipmentInfo.Ranking); offerlist.SetUp(data.ShipmentInfo.BidMarkets); }
public void SetUp (Automotive data) { gameObject.SetActive(true); label.Text = GetTitle(data) + data.ShipmentInfo.LowerPrice.Value; details.Text = data.ShipmentInfo.GetDetails; SetRanking (data); CreateList (AppManager.Instance.MyVehiclesAssignment); }
public void SetUp (Automotive data, Action<Automotive> callback) { Data = data; OnShowDetailInformation = callback; if(dateLabel != null) dateLabel.Text = Data.ShipmentInfo.BidShipment.DateClose; label.Text = GetTitle (data) + data.ShipmentInfo.LowerPrice.Value; }
private void OnShowDetailInformation (Automotive information) { lists.ForEach(c=>c.Hide ()); detailInformation.SetUp (information); }
public void SetUp (Automotive data) { localAutomotive = data; title.text = GetTitle (data) + data.ShipmentInfo.LowerPrice.Value; }
private void SetRanking (Automotive data) { stars.ForEach(c=>c.transform.localScale = Vector3.zero); for (int i = 0; i < data.ShipmentInfo.Ranking; i++) stars [i].transform.localScale = Vector3.one; }