コード例 #1
0
        private void ChooseType()
        {
            var optionMenu = UIAlertController.Create(null, "Elegir Opción", UIAlertControllerStyle.ActionSheet);

            optionMenu.AddAction(UIAlertAction.Create("Paquete", UIAlertActionStyle.Default,
                                                      alert =>
            {
                TypeNameButton.SetTitle("Paquete", UIControlState.Normal);
            }
                                                      ));

            optionMenu.AddAction(UIAlertAction.Create("Paquete 2", UIAlertActionStyle.Default,
                                                      alert =>
            {
                TypeNameButton.SetTitle("Paquete 2", UIControlState.Normal);
            }
                                                      ));

            optionMenu.AddAction(UIAlertAction.Create("Cancelar", UIAlertActionStyle.Cancel,
                                                      alert =>
            {
            }
                                                      ));

            PresentViewController(optionMenu, true, null);
        }
コード例 #2
0
        void LoadQuotation(Schemas.Product.ProductQuotationInfo quotationInfo)
        {
            var companiesNumber = quotationInfo.CompaniesNumberTypes.Count;

            EnterpriseNameButton.SetTitle(quotationInfo.CompaniesNumberTypes[0].Name, UIControlState.Normal);

            if (companiesNumber > 0)
            {
                companyType = quotationInfo.CompaniesNumberTypes[0];
                if (companiesNumber == 1)
                {
                    EnterpriseNameButton2.Hidden = true;
                    EmpresasView.Hidden          = true;
                    TypeNameButton.RemoveTarget((sender, e) => TypeOperationDidTouch((UIButton)TypeNameButton), UIControlEvent.TouchUpInside);
                }
                else
                {
                    EnterpriseNameButton2.Hidden = false;
                    EmpresasView.Hidden          = false;
                }
            }
        }
コード例 #3
0
        void ReleaseDesignerOutlets()
        {
            if (AddToCarButton != null)
            {
                AddToCarButton.Dispose();
                AddToCarButton = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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