Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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"]} ч.";
        }