Esempio n. 1
0
        private void MoveToDeeperSettings(BarcodeCaptureSettingsItem item)
        {
            switch (item.Type)
            {
            case BarcodeCaptureSettingsType.Symbologies:
                this.MoveToFragment(SymbologySettingsFragment.Create(), true, null);
                break;

            case BarcodeCaptureSettingsType.LocationSelection:
                this.MoveToFragment(LocationSettingsFragment.Create(), true, null);
                break;

            case BarcodeCaptureSettingsType.Feedback:
                this.MoveToFragment(FeedbackSettingsFragment.Create(), true, null);
                break;

            case BarcodeCaptureSettingsType.CodeDuplicateFilter:
                this.MoveToFragment(CodeDuplicateFilterSettingsFragment.Create(), true, null);
                break;

            case BarcodeCaptureSettingsType.CompositeTypes:
                this.MoveToFragment(CompositeTypesSettingsFragment.Create(), true, null);
                break;
            }
        }
        public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position)
        {
            if (this.items.Count <= position)
            {
                return;
            }

            BarcodeCaptureSettingsItem currentEntry = this.items[position];

            var viewHolder = holder as SingleTextViewHolder;

            viewHolder.SetFirstTextView(currentEntry.DisplayNameResourceId);
            viewHolder.Click += (object sender, EventArgs args) => this.onClickCallback?.Invoke(currentEntry);
        }