public override void RowSelected(UITableView tableView, NSIndexPath indexPath) { var list = newsfeed[indexPath.Row]; if (!string.IsNullOrEmpty(list.imageUrl)) { IosHelper.setNSUserDefaults("newsImageURL", list.imageUrl); } else { IosHelper.setNSUserDefaults("newsImageURL", ""); } if (!string.IsNullOrEmpty(list.name)) { IosHelper.setNSUserDefaults("newsName", list.name); } else { IosHelper.setNSUserDefaults("newsName", ""); } if (!string.IsNullOrEmpty(list.note)) { IosHelper.setNSUserDefaults("newsNote", list.note); } else { IosHelper.setNSUserDefaults("newsNote", ""); } }
public override void RowSelected(UITableView tableView, NSIndexPath indexPath) { var list = offers[indexPath.Row]; if (!string.IsNullOrEmpty(list.imageUrl)) { IosHelper.setNSUserDefaults("offerImageURL", list.imageUrl); } else { IosHelper.setNSUserDefaults("offerImageURL", ""); } if (!string.IsNullOrEmpty(list.name)) { IosHelper.setNSUserDefaults("offerName", list.name); } else { IosHelper.setNSUserDefaults("offerName", ""); } if (!string.IsNullOrEmpty(list.note)) { IosHelper.setNSUserDefaults("offerNote", list.note); } else { IosHelper.setNSUserDefaults("offerNote", ""); } if (!string.IsNullOrEmpty(list.dutyText)) { IosHelper.setNSUserDefaults("offerDutyText", list.dutyText); } else { IosHelper.setNSUserDefaults("offerDutyText", ""); } if (!string.IsNullOrEmpty(list.code)) { IosHelper.setNSUserDefaults("offerCode", list.code); } else { IosHelper.setNSUserDefaults("offerCode", ""); } IosHelper.setNSUserDefaults("offerValue", ObjectRepository.parseOfferValue(list)); IosHelper.setNSUserDefaults("offerValidityDate", ObjectRepository.ParseDateTimeToCulture(list.validityDate)); }