public CustomerSearchTypeView(StringHelper stringHelper, bool titleMode, string label, string type, string image)
        {
            Orientation = Android.Widget.Orientation.Horizontal;

            _stringHelper = stringHelper;
            _helper       = new MobileCustomerSearchHelper();
            TitleMode     = titleMode;
            Label         = label;
            CustomerType  = type;
            Image         = image;

            this.SetWillNotDraw(false);

            this.SetAccessibilityIdentifier(string.Format("TYPE:{0}", CustomerType));

            if (TitleMode)
            {
                this.SetBackgroundColor(StyleGuide.OpaqueSkinColor);
                this.TitleLabel         = Label;
                _selectAllButton        = new SelectAllButton(stringHelper, _helper);
                _selectAllButton.Click += Handle_selectAllButtonTouchDown;

                var layoutParameters = new Android.Widget.LinearLayout.LayoutParams(
                    Android.Views.ViewGroup.LayoutParams.WrapContent,
                    Android.Views.ViewGroup.LayoutParams.WrapContent);
                layoutParameters.Gravity          = Android.Views.GravityFlags.Center;
                _selectAllButton.LayoutParameters = layoutParameters;

                this.AddView(_selectAllButton);
                //this.SizeToFit();
            }
            else
            {
                this.CustImage            = ImageUrlHelper.GetImage(Image);
                this.CustTypeLabel        = Label;;
                _selectCust               = new CdlCheckBoxFactory.MultiCheckBox(false);
                _selectCust.On            = false;
                _selectCust.On            = _helper.IsSelected;
                _selectCust.ValueChanged += Handle_selectCustValueChanged;

                var layoutParameters = new Android.Widget.LinearLayout.LayoutParams(
                    Android.Views.ViewGroup.LayoutParams.WrapContent,
                    Android.Views.ViewGroup.LayoutParams.WrapContent);
                layoutParameters.SetMargins(8.px(), 8.px(), 8.px(), 8.px());
                layoutParameters.Gravity     = Android.Views.GravityFlags.Center;
                _selectCust.LayoutParameters = layoutParameters;

                this.AddView(_selectCust);
                //this.SizeToFit();
            }
        }