Esempio n. 1
0
        public void Configure(DescriptionTypeEventModel cell)
        {
            _imageView.Image?.Dispose();
            _imageView.Image = UIImage.FromBundle("arrow_right");

            if (cell.HasView)
            {
                _imageView.Hidden             = false;
                _arrowWithConstraint.Constant = 24f;
            }
            else
            {
                _imageView.Hidden             = true;
                _arrowWithConstraint.Constant = 0f;
            }

            UILabelExtensions.SetupLabelAppearance(_label, cell.Description, Colors.Black, 15f);
        }
Esempio n. 2
0
        public UserSettingsSource(UITableView tableView, SettingsPhoneModel phoneModel, SettingsAllowCallsModel allowCallsModel,
                                  DescriptionTypeEventModel passwordTypeModel, List <DescriptionAndBoolEventModel> switchModel,
                                  List <DescriptionTypeEventModel> typeModelInformation, List <DescriptionTypeEventModel> typeModelDanger,
                                  Dictionary <string, string> locationResources)
        {
            _phoneModel           = phoneModel;
            _allowCallsModel      = allowCallsModel;
            _passwordTypeModel    = passwordTypeModel;
            _typeModelInformation = typeModelInformation;
            _typeModelDanger      = typeModelDanger;
            _switchModel          = switchModel;
            _locationResources    = locationResources;

            tableView.RegisterNibForCellReuse(LabelWithArrowCell.Nib, LabelWithArrowCell.Key);
            tableView.RegisterNibForCellReuse(SwitchCell.Nib, SwitchCell.Key);
            tableView.RegisterNibForCellReuse(AllowPhoneCallsCell.Nib, AllowPhoneCallsCell.Key);
            tableView.RegisterNibForCellReuse(PhoneNumberCell.Nib, PhoneNumberCell.Key);
        }