private void UpdateSelection(InfoCoinElement infoCoinElement) { DeselectActiveElement(); infoCoinElement.Select(); _lastSelectedElement = infoCoinElement; }
private void DeselectActiveElement() { if (_lastSelectedElement != null) { _lastSelectedElement.Deselect(); } _lastSelectedElement = null; }
private bool IsInfoCoinHasName(InfoCoinElement infoCoinElement) { var hasSponsorData = false; foreach (var sponsorModel in _sponsorWithNameList) { if (sponsorModel.Id.Equals(infoCoinElement.SponsorId)) { hasSponsorData = true; break; } } return(hasSponsorData); }