public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath) { UITableViewCell cell = tableView.DequeueReusableCell(CellIdentifier, indexPath); //if(cell==null) //{ // cell = new UITableViewCell(UITableViewCellStyle.Subtitle, CellIdentifier); //} Model.SuperList list = MySuperLists[indexPath.Row]; cell.TextLabel.Text = list.SLName; cell.DetailTextLabel.Text = list.Description; return(cell); }
partial void OnCreatingSuperLst(UIButton sender) { if (string.IsNullOrWhiteSpace(EntrySLName.Text) || string.IsNullOrWhiteSpace(EntrySLDescription.Text)) { Acr.UserDialogs.UserDialogs.Instance.Alert("Must fill all fields.", "Alert", "OK"); return; } _Realm.Write(() => { var superList = new Model.SuperList(); superList.Id = Guid.NewGuid().ToString(); superList.SLName = EntrySLName.Text; superList.Description = EntrySLDescription.Text; _Realm.Add(superList); }); ClearFields(); }