void ReleaseDesignerOutlets()
        {
            if (CityTextField != null)
            {
                CityTextField.Dispose();
                CityTextField = null;
            }

            if (CompanyNameTextField != null)
            {
                CompanyNameTextField.Dispose();
                CompanyNameTextField = null;
            }

            if (PropertyNameTextField != null)
            {
                PropertyNameTextField.Dispose();
                PropertyNameTextField = null;
            }

            if (SquareFeetTextField != null)
            {
                SquareFeetTextField.Dispose();
                SquareFeetTextField = null;
            }

            if (StateTextField != null)
            {
                StateTextField.Dispose();
                StateTextField = null;
            }
        }
示例#2
0
        public void BindDataToView(Card card, bool editable)
        {
            if (card == null)
            {
                return;
            }

            BackgroundColor = ColorUtils.FromHexString(card.BackgroundColor, UIColor.White);

            CompanyNameTextField.Text        = card.CompanyName;
            CompanyNameTextField.Placeholder = (editable) ? Strings.Basic.company_name : String.Empty;
            CompanyNameTextField.TextColor   = ColorUtils.FromHexString(card.CompanyNameTextColor, UIColor.White);
            CompanyNameTextField.Enabled     = editable;
            CompanyNameTextField.RemoveTarget(null, null, UIControlEvent.EditingChanged);
            CompanyNameTextField.EditingChanged += (sender, e) =>
            {
                card.UpdateStringProperty(() => card.CompanyName, CompanyNameTextField.Text.Trim());
                DealWithTextFieldborder(CompanyNameTextField, card, editable);
                NSNotificationCenter.DefaultCenter.PostNotificationName(Strings.InternalNotifications.notification_card_editing_changed, null);
            };
            CompanyNameTextField.RemoveTarget(null, null, UIControlEvent.EditingDidEndOnExit);
            CompanyNameTextField.EditingDidEndOnExit += (sender, e) =>
            {
                CompanyNameTextField.ResignFirstResponder();
            };
            DealWithTextFieldborder(CompanyNameTextField, card, editable);

            var fallback = (editable) ? "Buildings" : null;

            LogoImageButton.SetImageWithCustomCache(card.GetRemoteLogoUrlCached(), fallback, fallback, card.RemoteLogoURL);
            LogoImageButton.UserInteractionEnabled = editable;
        }
示例#3
0
        void ReleaseDesignerOutlets()
        {
            if (CompanyNameTextField != null)
            {
                CompanyNameTextField.Dispose();
                CompanyNameTextField = null;
            }

            if (LogoImageButton != null)
            {
                LogoImageButton.Dispose();
                LogoImageButton = null;
            }
        }
示例#4
0
        void ReleaseDesignerOutlets()
        {
            if (_clientsView != null)
            {
                _clientsView.Dispose();
                _clientsView = null;
            }

            if (_companyEmailView != null)
            {
                _companyEmailView.Dispose();
                _companyEmailView = null;
            }

            if (_companyPhoneView != null)
            {
                _companyPhoneView.Dispose();
                _companyPhoneView = null;
            }

            if (_corporativePhoneView != null)
            {
                _corporativePhoneView.Dispose();
                _corporativePhoneView = null;
            }

            if (_corporativeSiteView != null)
            {
                _corporativeSiteView.Dispose();
                _corporativeSiteView = null;
            }

            if (_faxView != null)
            {
                _faxView.Dispose();
                _faxView = null;
            }

            if (_foundationYearView != null)
            {
                _foundationYearView.Dispose();
                _foundationYearView = null;
            }

            if (_headerConstraintHeight != null)
            {
                _headerConstraintHeight.Dispose();
                _headerConstraintHeight = null;
            }

            if (_headerConstraintTop != null)
            {
                _headerConstraintTop.Dispose();
                _headerConstraintTop = null;
            }

            if (_linesOfBusinessView != null)
            {
                _linesOfBusinessView.Dispose();
                _linesOfBusinessView = null;
            }

            if (_positionView != null)
            {
                _positionView.Dispose();
                _positionView = null;
            }

            if (activityIndicator != null)
            {
                activityIndicator.Dispose();
                activityIndicator = null;
            }

            if (address_imageBn != null)
            {
                address_imageBn.Dispose();
                address_imageBn = null;
            }

            if (addressForwBn != null)
            {
                addressForwBn.Dispose();
                addressForwBn = null;
            }

            if (addressMainBn != null)
            {
                addressMainBn.Dispose();
                addressMainBn = null;
            }

            if (backBn != null)
            {
                backBn.Dispose();
                backBn = null;
            }

            if (ClientsTextField != null)
            {
                ClientsTextField.Dispose();
                ClientsTextField = null;
            }

            if (CompanyAdditionalPhoneTextField != null)
            {
                CompanyAdditionalPhoneTextField.Dispose();
                CompanyAdditionalPhoneTextField = null;
            }

            if (CompanyEmailTextField != null)
            {
                CompanyEmailTextField.Dispose();
                CompanyEmailTextField = null;
            }

            if (companyLogoForwBn != null)
            {
                companyLogoForwBn.Dispose();
                companyLogoForwBn = null;
            }

            if (companyLogoImageBn != null)
            {
                companyLogoImageBn.Dispose();
                companyLogoImageBn = null;
            }

            if (companyLogoMainBn != null)
            {
                companyLogoMainBn.Dispose();
                companyLogoMainBn = null;
            }

            if (CompanyNameTextField != null)
            {
                CompanyNameTextField.Dispose();
                CompanyNameTextField = null;
            }

            if (CompanyPhoneTextField != null)
            {
                CompanyPhoneTextField.Dispose();
                CompanyPhoneTextField = null;
            }

            if (CorporativePhoneAdditionalPhoneTextField != null)
            {
                CorporativePhoneAdditionalPhoneTextField.Dispose();
                CorporativePhoneAdditionalPhoneTextField = null;
            }

            if (CorporativePhoneTextField != null)
            {
                CorporativePhoneTextField.Dispose();
                CorporativePhoneTextField = null;
            }

            if (CorporativeSiteTextField != null)
            {
                CorporativeSiteTextField.Dispose();
                CorporativeSiteTextField = null;
            }

            if (createCardBn != null)
            {
                createCardBn.Dispose();
                createCardBn = null;
            }

            if (FaxAdditionalTextField != null)
            {
                FaxAdditionalTextField.Dispose();
                FaxAdditionalTextField = null;
            }

            if (FaxTextField != null)
            {
                FaxTextField.Dispose();
                FaxTextField = null;
            }

            if (FoundationYearTextField != null)
            {
                FoundationYearTextField.Dispose();
                FoundationYearTextField = null;
            }

            if (headerLabel != null)
            {
                headerLabel.Dispose();
                headerLabel = null;
            }

            if (headerView != null)
            {
                headerView.Dispose();
                headerView = null;
            }

            if (LinesOfBusinessTextField != null)
            {
                LinesOfBusinessTextField.Dispose();
                LinesOfBusinessTextField = null;
            }

            if (logo_with_imageBn != null)
            {
                logo_with_imageBn.Dispose();
                logo_with_imageBn = null;
            }

            if (PositionTextField != null)
            {
                PositionTextField.Dispose();
                PositionTextField = null;
            }

            if (resetBn != null)
            {
                resetBn.Dispose();
                resetBn = null;
            }

            if (scrollView != null)
            {
                scrollView.Dispose();
                scrollView = null;
            }
        }