public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType) { View makeLaborView = LayoutInflater.From(parent.Context).Inflate(Resource.Layout.view_laboritem, parent, false); LaborViewHolder makeOrderLaborViewHolder = new LaborViewHolder(makeLaborView, OnClick); return(makeOrderLaborViewHolder); }
public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position) { LaborViewHolder vh = holder as LaborViewHolder; vh.LaborCheckBox.Checked = DataPreferences.Instance.selectedLabors != null && DataPreferences.Instance.selectedLabors.Contains(Items[position]["Id"].ToString()); vh.LaborDescription.Text = $"{Items[position]["Text"]}\nДействие: {Items[position]["Note"]}\nВремя: {Items[position]["Time"]} ч."; }