Exemple #1
0
        public override void ViewDidDisappear(bool animated)
        {
            base.ViewDidDisappear(animated);

            //like, share, and email broker button event wiring

            AdEmail1.TouchUpInside -= SendEmail_TouchUpInside;
            AdEmail2.TouchUpInside -= SendEmail_TouchUpInside;
            AdEmail3.TouchUpInside -= SendEmail_TouchUpInside;
            AdEmail4.TouchUpInside -= SendEmail_TouchUpInside;

            AdShare1.TouchUpInside -= AdShare_TouchUpInside;
            AdShare2.TouchUpInside -= AdShare_TouchUpInside;
            AdShare3.TouchUpInside -= AdShare_TouchUpInside;
            AdShare4.TouchUpInside -= AdShare_TouchUpInside;

            AdLike1.TouchUpInside -= AdLike_TouchUpInside;
            AdLike2.TouchUpInside -= AdLike_TouchUpInside;
            AdLike3.TouchUpInside -= AdLike_TouchUpInside;
            AdLike4.TouchUpInside -= AdLike_TouchUpInside;

            //Ad1TechnicalSpecButton.TouchUpInside -= TechnicalSpecButton_TouchUpInside;
            //Ad2TechnicalSpecButton.TouchUpInside -= TechnicalSpecButton_TouchUpInside;
            //Ad3TechnicalSpecButton.TouchUpInside -= TechnicalSpecButton_TouchUpInside;
            //Ad4TechnicalSpecButton.TouchUpInside -= TechnicalSpecButton_TouchUpInside;

            Ad1NameButton.TouchUpInside -= AdSortButton_TouchUpInside;
            Ad2NameButton.TouchUpInside -= AdSortButton_TouchUpInside;
            Ad3NameButton.TouchUpInside -= AdSortButton_TouchUpInside;
            Ad4NameButton.TouchUpInside -= AdSortButton_TouchUpInside;

            Ad1BrokerButton.TouchUpInside -= AdSortButton_TouchUpInside;
            Ad2BrokerButton.TouchUpInside -= AdSortButton_TouchUpInside;
            Ad3BrokerButton.TouchUpInside -= AdSortButton_TouchUpInside;
            Ad4BrokerButton.TouchUpInside -= AdSortButton_TouchUpInside;

            AdImage1.RemoveGestureRecognizer(tapGesture1);
            AdImage2.RemoveGestureRecognizer(tapGesture2);
            AdImage3.RemoveGestureRecognizer(tapGesture3);
            AdImage4.RemoveGestureRecognizer(tapGesture4);

            Ad1MessageButton.TouchUpInside -= AdMessages_TouchUpInside;
            Ad2MessageButton.TouchUpInside -= AdMessages_TouchUpInside;
            Ad3MessageButton.TouchUpInside -= AdMessages_TouchUpInside;
            Ad4MessageButton.TouchUpInside -= AdMessages_TouchUpInside;

            //Ad1RGButton.TouchUpInside -= AdRGButton_TouchUpInside;
            //Ad2RGButton.TouchUpInside -= AdRGButton_TouchUpInside;
            //Ad3RGButton.TouchUpInside -= AdRGButton_TouchUpInside;
            //Ad4RGButton.TouchUpInside -= AdRGButton_TouchUpInside;
        }
        public override void ViewDidDisappear(bool animated)
        {
            base.ViewDidDisappear(animated);

            AdEmail1.TouchUpInside -= SendEmail_TouchUpInside;
            AdShare1.TouchUpInside -= AdShare_TouchUpInside;
            AdLike1.TouchUpInside  -= AdLike_TouchUpInside;
            Ad1TechnicalSpecButton.TouchUpInside -= TechnicalSpecButton_TouchUpInside;

            //Ad1NameButton.TouchUpInside -= AdSortButton_TouchUpInside;
            //Ad1BrokerButton.TouchUpInside -= AdSortButton_TouchUpInside;

            AdPhone1.TouchUpInside    -= AdPhone1_TouchUpInside;
            AdMessages1.TouchUpInside -= AdMessages1_TouchUpInside;

            AdImage1.RemoveGestureRecognizer(tapGesture1);

            Ad1RGButton.TouchUpInside -= AdRGButton_TouchUpInside;
        }
Exemple #3
0
        public override void ViewDidDisappear(bool animated)
        {
            base.ViewDidDisappear(animated);

            //like, share, and email broker button event wiring

            AdEmail1.TouchUpInside       -= SendEmail_TouchUpInside;
            Ad2EmailButton.TouchUpInside -= SendEmail_TouchUpInside;

            AdShare1.TouchUpInside       -= AdShare_TouchUpInside;
            Ad2ShareButton.TouchUpInside -= AdShare_TouchUpInside;

            Ad1DetailButton.TouchUpInside -= Ad1DetailButton_TouchUpInside;
            Ad2DetailButton.TouchUpInside -= Ad2DetailButton_TouchUpInside;

            AdLike1.TouchUpInside       -= AdLike_TouchUpInside;
            Ad2LikeButton.TouchUpInside -= AdLike_TouchUpInside;


            Ad1TechnicalSpecButton.TouchUpInside -= TechnicalSpecButton_TouchUpInside;
            Ad2TechnicalSpecButton.TouchUpInside -= TechnicalSpecButton_TouchUpInside;

            Ad1NameButton.TouchUpInside -= AdSortButton_TouchUpInside;
            Ad2NameButton.TouchUpInside -= AdSortButton_TouchUpInside;


            Ad1BrokerButton.TouchUpInside -= AdSortButton_TouchUpInside;
            Ad2BrokerButton.TouchUpInside -= AdSortButton_TouchUpInside;

            AdImage1.RemoveGestureRecognizer(tapGesture1);
            Ad2Image.RemoveGestureRecognizer(tapGesture2);

            Ad1MessageButton.TouchUpInside -= AdMessages_TouchUpInside;
            Ad2MessageButton.TouchUpInside -= AdMessages_TouchUpInside;


            Ad1RGButton.TouchUpInside -= AdRGButton_TouchUpInside;
            Ad2RGButton.TouchUpInside -= AdRGButton_TouchUpInside;
        }