示例#1
0
            public NowPlayingView(NowPlayingViewController parent)
            {
                Parent             = parent;
                this.ClipsToBounds = true;
                BackgroundColor    = UIColor.Gray;
                collectionView     = new NowPlayingCollectionView();
                Add(collectionView.View);
                Parent.AddChildViewController(collectionView);

                var buttonFrame = new CGRect(0, 0, 44, 44);

                Add(closeButton = new SimpleShadowButton()
                {
                    Image     = Images.GetCloseImage(15).ImageWithRenderingMode(UIImageRenderingMode.AlwaysTemplate),
                    TintColor = Style.DefaultStyle.AccentColor,
                    Tapped    = (b) => Parent?.Close?.Invoke(),
                    Frame     = buttonFrame,
                });
                Add(showCurrentPlaylist = new SimpleShadowButton
                {
                    Image     = Images.GetPlaylistIcon(20).ImageWithRenderingMode(UIImageRenderingMode.AlwaysTemplate),
                    TintColor = Style.DefaultStyle.AccentColor,
                    Tapped    = (b) => Parent?.ShowCurrentPlaylist(),
                    Frame     = buttonFrame,
                });

                Add(playButton = new SimpleButton
                {
                    Frame = new CGRect(0, 0, buttonWidth, buttonWidth),
                    Image = Images.GetBorderedPlaybackButton(buttonWidth),
                    AccessibilityIdentifier = "Play",
                    Tapped = (b) => { PlaybackManager.Shared.PlayPause(); }
                }.StylePlaybackControl());
                Add(footer = new BottomView());
            }
        void ReleaseDesignerOutlets()
        {
            if (BackgroundImageView != null)
            {
                BackgroundImageView.Dispose();
                BackgroundImageView = null;
            }

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

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

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

            if (Title != null)
            {
                Title.Dispose();
                Title = null;
            }
        }
示例#3
0
        protected override void LayoutChildren(double x, double y, double width, double height)
        {
            if (MainView != null)
            {
                LayoutChildIntoBoundingRegion(MainView, new Rectangle(x, y, width, height));
            }

            if (BottomView != null)
            {
                var measured = BottomView.Measure(width, height);
                LayoutChildIntoBoundingRegion(BottomView, new Rectangle(x, y + height - measured.Request.Height, width, measured.Request.Height));
            }
        }
示例#4
0
        void ReleaseDesignerOutlets()
        {
            if (BottomViewHeightConstraint != null)
            {
                BottomViewHeightConstraint.Dispose();
                BottomViewHeightConstraint = null;
            }

            if (BottomView != null)
            {
                BottomView.Dispose();
                BottomView = null;
            }
        }
示例#5
0
        protected override SizeRequest OnMeasure(double widthConstraint, double heightConstraint)
        {
            if (MainView == null)
            {
                return(new SizeRequest());
            }

            var mainViewSize = MainView.Measure(widthConstraint, heightConstraint);

            if (BottomView != null)
            {
                BottomView.Measure(widthConstraint, heightConstraint);
            }

            return(mainViewSize);
        }
示例#6
0
        void InitializeComponents()
        {
            LblEdit.Hidden = true;
            LblTap.Hidden  = true;

            editTapGesture = new UITapGestureRecognizer(ShowOptions)
            {
                Enabled = true
            };
            ProfileView.AddGestureRecognizer(editTapGesture);

            tapTapGesture = new UITapGestureRecognizer(ShowOptions)
            {
                Enabled = true
            };
            BottomView.AddGestureRecognizer(tapTapGesture);
        }
示例#7
0
        void ReleaseDesignerOutlets()
        {
            if (ProfileView != null)
            {
                ProfileView.Dispose();
                ProfileView = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if (warningLabel != null)
            {
                warningLabel.Dispose();
                warningLabel = null;
            }
        }
示例#9
0
        void ReleaseDesignerOutlets()
        {
            if (BottomView != null)
            {
                BottomView.Dispose();
                BottomView = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if (TimerLabel != null)
            {
                TimerLabel.Dispose();
                TimerLabel = null;
            }
        }
示例#12
0
        void ReleaseDesignerOutlets()
        {
            if (BottomView != null)
            {
                BottomView.Dispose();
                BottomView = null;
            }

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

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

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

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

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

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

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

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

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

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