public void UpdateCellData(SummaryModel summary) { var frame = Frame; Text.Font = UIFont.FromName(Text.Font.Name, SizeConstants.ScreenMultiplier * 14); Text2.Font = UIFont.FromName(Text.Font.Name, SizeConstants.ScreenMultiplier * 14); Text.SizeToFit(); Text2.SizeToFit(); if ((summary as ChallengeTypeSummaryModel) != null) { UpdateCellData(summary as ChallengeTypeSummaryModel); } else if ((summary as ChallengeSummaryModel) != null) { UpdateCellData(summary as ChallengeSummaryModel); } else if ((summary as RewardSummaryModel) != null) { UpdateCellData(summary as RewardSummaryModel); } }