Exemple #1
0
        /// <summary>
        /// Initialize flex layout and fill it with text labels
        /// </summary>
        private void InitFlex()
        {
            // Initialize Flex View
            FlexView = new View();
            FlexView.PositionUsesPivotPoint = true;
            FlexView.PivotPoint             = PivotPoint.Center;
            FlexView.ParentOrigin           = ParentOrigin.Center;
            FlexView.HeightSpecification    = LayoutParamPolicies.MatchParent;
            FlexView.WidthSpecification     = LayoutParamPolicies.MatchParent;
            FlexView.BackgroundColor        = Color.Black;
            FlexView.Layout = new FlexLayout()
            {
                WrapType = FlexLayout.FlexWrapType.Wrap
            };
            TopView.Add(FlexView);

            // Add elements to Flex View
            for (int i = 0; i < ItemsCnt; i++)
            {
                TextLabel t = new TextLabel();
                t.Margin          = new Extents(10, 10, 10, 10);
                t.Text            = "X " + i;
                t.BackgroundColor = new Color(0.8f, 0.1f, 0.2f, 1.0f);
                FlexView.Add(t);
            }
        }
Exemple #2
0
        void Start()
        {
            //积分器初始化
            m_scoreRecorder = new ScoreRecorder();

            //获取小鸟控制器
            m_birdController = FindObjectOfType <BirdController>();

            //声音控制器
            m_audioManager = new AudioManager();
            m_audioManager.PlayBGMusic();

            m_gameBehaviours = new List <IGameBehaviour>();
            m_gameBehaviours.Add(m_audioManager);

            //UI初始化
            m_topView = new TopView();
            m_topView.InitPreLoadView();
            m_resultView = new ResultView();
            m_resultView.InitPreLoadView();


            //画布管理器
            bgSkyBehaviours = this.gameObject.AddComponent <BGSkyBehaviours>();
            m_pipesFactory  = new PipesFactory();
            //先创建一组管子
            m_pipesFactory.CreatePipeGroup();
        }
Exemple #3
0
        public override void ViewWillDisappear(bool animated)
        {
            TopView?.RemoveGestureRecognizer(TapGestureRecognizer);
            TopView?.RemoveGestureRecognizer(LtrPanGestureRecognizer);

            base.ViewWillDisappear(animated);
        }
Exemple #4
0
        public override void ViewWillAppear(bool animated)
        {
            base.ViewWillAppear(animated);

            TopView?.AddGestureRecognizer(TapGestureRecognizer);
            TopView?.AddGestureRecognizer(LtrPanGestureRecognizer);
        }
 //显示有亲友圈的UI
 public void ShowHaveFrienCircleUI()
 {
     HideAllView();
     TopView.ShowFriendCircleInfo(); //显示上面的 亲友信息
     OptionLisView.ShowStateSet();   //设置状态 默认toggle显示房间
     RoomListView.Show();            //刷新房间列表
 }
        /* The #develop designer is going to delete this:
         *
         *      TopViewControl = new TopView();
         *
         * - so copy it back into InitializeComponent() */

        #region Windows Form Designer generated code
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            TopViewControl = new TopView();
            this.SuspendLayout();
            //
            // TopViewControl
            //
            this.TopViewControl.Dock     = System.Windows.Forms.DockStyle.Fill;
            this.TopViewControl.Font     = new System.Drawing.Font("Verdana", 7F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.TopViewControl.Location = new System.Drawing.Point(0, 0);
            this.TopViewControl.Name     = "TopViewControl";
            this.TopViewControl.Size     = new System.Drawing.Size(632, 454);
            this.TopViewControl.TabIndex = 1;
            //
            // TopViewForm
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
            this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize          = new System.Drawing.Size(632, 454);
            this.Controls.Add(this.TopViewControl);
            this.Font          = new System.Drawing.Font("Verdana", 7F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.Name          = "TopViewForm";
            this.ShowInTaskbar = false;
            this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
            this.Text          = "TopView";
            this.ResumeLayout(false);
        }
 public TopViewPresenter(TopView view, IDocumentRepository repository, IEventAggregator eventAggregator)
 {
     View             = view;
     _eventAggregator = eventAggregator;
     _repository      = repository;
     View.Model       = this;
 }
Exemple #8
0
            public override DIRECTION translateMove(NodeL from, NodeL to, ref View v)
            {
                int second = to.x - from.x;
                int first  = to.y - from.y;

                if (first > 0) // dolu
                {
                    return(DIRECTION.DIRECTION_FORWARD);
                }
                else if (first < 0) // nahoru
                {
                    v = new TopView();
                    return(DIRECTION.DIRECTION_BACKWARD);
                }
                else if (second > 0) // doprava
                {
                    v = new RightView();
                    return(DIRECTION.DIRECTION_LEFT);
                }
                else if (second < 0) // doleva
                {
                    v = new LeftView();
                    return(DIRECTION.DIRECTION_RIGHT);
                }
                else
                {
                    return(DIRECTION.WAIT);
                }
            }
Exemple #9
0
        private void GestureOnPanUpdated(object sender, PanUpdatedEventArgs panUpdatedEventArgs)
        {
            Device.BeginInvokeOnMainThread(async() =>
            {
                var x = panUpdatedEventArgs.TotalX;
                var y = panUpdatedEventArgs.TotalY;
                if (TopView != null)
                {
                    if (x == 0 && y == 0) //reset view to the stack!
                    {
                        Debug.WriteLine("Reset card to stack");
                        _removed = false;
                        if (_lastX != 0 || _lastY != 0)
                        {
                            await TopView.TranslateTo(0, 0, 500U, Easing.CubicInOut);
                        }
                    }
                    else if (!_removed)
                    {
                        _lastX    = x;
                        _lastY    = y;
                        var bound = Width * (5 / 7.0);
                        _removed  = true;


                        if (x > bound) //Move right out of the picture
                        {
                            await TopView.TranslateTo(Width, y);
                            MovedOutRight();
                            _mainGrid.Children.Remove(TopView);

                            AddCardFromQueue();
                        }
                        else if (x < -bound) //Move left out of the picture
                        {
                            await TopView.TranslateTo(-Width, y);
                            MovedOutLeft();
                            _mainGrid.Children.Remove(TopView);

                            AddCardFromQueue();
                        }
                        else
                        {
                            await TopView.TranslateTo(x, y, 10U);
                            _removed = false;
                        }
                    }
                }
            });
        }
Exemple #10
0
        private void UpdateViews()
        {
            TopView.Perspective   = HullControl.PerspectiveType.TOP;
            SideView.Perspective  = HullControl.PerspectiveType.SIDE;
            FrontView.Perspective = HullControl.PerspectiveType.FRONT;

            // Need to invoke the setter to regenerate the hull.
            PerspectiveView.Perspective = PerspectiveView.Perspective;

            TopView.InvalidateVisual();
            FrontView.InvalidateVisual();
            SideView.InvalidateVisual();
            PerspectiveView.InvalidateVisual();
        }
Exemple #11
0
        private void UpdateViews()
        {
            EditableHull topView = new EditableHull(myHull);

            topView.Rotate(0, 90, 90);
            TopView.editableHull = topView;
            TopView.perspective  = HullControl.PerspectiveType.TOP;

            EditableHull sideView = new EditableHull(myHull);

            sideView.Rotate(0, 90, 180);
            SideView.editableHull = sideView;
            SideView.perspective  = HullControl.PerspectiveType.SIDE;

            EditableHull frontView = new EditableHull(myHull);

            frontView.Rotate(0, 0, 180);
            FrontView.editableHull = frontView;
            FrontView.perspective  = HullControl.PerspectiveType.FRONT;

            EditableHull perspectiveView = new EditableHull(myHull);

            switch (PerspectiveView.perspective)
            {
            case HullControl.PerspectiveType.FRONT:
                perspectiveView.Rotate(0, 0, 180);
                break;

            case HullControl.PerspectiveType.TOP:
                perspectiveView.Rotate(0, 90, 90);
                break;

            case HullControl.PerspectiveType.SIDE:
                perspectiveView.Rotate(0, 90, 180);
                break;

            case HullControl.PerspectiveType.PERSPECTIVE:
                perspectiveView.Rotate(10, 30, 190);
                break;
            }
            PerspectiveView.editableHull = perspectiveView;

            TopView.InvalidateVisual();
            FrontView.InvalidateVisual();
            SideView.InvalidateVisual();
            PerspectiveView.InvalidateVisual();
        }
Exemple #12
0
        public void SetLeftViewController(UIViewController leftViewController)
        {
            LeftViewController = leftViewController;

            AddChildViewController(LeftViewController);

            LeftView.Frame = LeftViewFrame;

            if (TopView?.IsDescendantOfView(View) ?? false)
            {
                View.InsertSubviewBelow(LeftView, TopView);
            }
            else
            {
                View.AddSubview(LeftView);
            }

            LeftViewController.DidMoveToParentViewController(this);
        }
Exemple #13
0
        private void patchBtn_Click(object sender, EventArgs e)
        {
            try
            {
                if (!File.Exists(this.exePath + ".bak"))
                {
                    File.Copy(this.exePath, this.exePath + ".bak");
                    this.backupBtn.Visible = true;
                }

                var resultSb = new StringBuilder("Patcher v2 :: Created by Zaczero\r\n\r\nPatch results:\r\n");
                var buffer   = File.ReadAllBytes(this.exePath);

                if (this.zoomOutCbox.Checked)
                {
                    if (ZoomOut.Process(ref buffer))
                    {
                        resultSb.AppendLine("ZoomHack (max) --> Success");
                    }
                    else
                    {
                        resultSb.AppendLine("ZoomHack (max) --> Fail");
                    }
                }

                if (this.zoomInCbox.Checked)
                {
                    if (ZoomIn.Process(ref buffer))
                    {
                        resultSb.AppendLine("ZoomHack (min) --> Success");
                    }
                    else
                    {
                        resultSb.AppendLine("ZoomHack (min) --> Fail");
                    }
                }

                if (this.oomCbox.Checked)
                {
                    if (OOM.Process(ref buffer))
                    {
                        resultSb.AppendLine("OOM --> Success");
                    }
                    else
                    {
                        resultSb.AppendLine("OOM --> Fail");
                    }
                }

                if (this.fovCbox.Checked)
                {
                    if (FOV.Process(ref buffer))
                    {
                        resultSb.AppendLine("FOV Changer --> Success");
                    }
                    else
                    {
                        resultSb.AppendLine("FOV Changer --> Fail");
                    }
                }

                if (this.topViewCbox.Checked)
                {
                    if (TopView.Process(ref buffer))
                    {
                        resultSb.AppendLine("TOP View --> Success");
                    }
                    else
                    {
                        resultSb.AppendLine("TOP View --> Fail");
                    }
                }

                resultSb.Append("\r\nIf any of these failed, here are the possible reasons:\r\n* Already patched\r\n* Patcher is outdated");

                File.WriteAllBytes(this.exePath, buffer);
                MessageBox.Show(resultSb.ToString(), "Patcher", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            catch (Exception ex)
            {
                // MsgBox
                MessageBox.Show("Patch failed!\r\n" + ex.Message + "\r\n\r\nPossible solutions:\r\n* Run as administrator\r\n* Pause anti-virus\r\n* Exit all LoL processes", "Patcher", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
        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;
            }
        }
Exemple #15
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;
            }
        }
Exemple #16
0
 private void Awake()
 {
     instance = this;
 }
        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;
            }
        }
        public void Run()
        {
            Settings appSettings = new Settings(); //init settings  (hardcoded- can be .json too)

            IFileManager fileManager = new FileManager();

            UnitOfWork fileUnit = new UnitOfWork(fileManager);

            fileUnit.ReadFiles();                            //read all tables from files to storage

            ITopView topView = new TopView(appSettings);     //top menu plank view instance

            IKeyReader arrowsFull   = new ArrowsKeyReader(); //key reader for categories and lists
            IKeyReader arrowsSimple = new SimpleReader();    //key reader for main top menu

            ITreePrinter <TopCategory> topPrinter  = new TreeView <TopCategory>(appSettings);
            ITreePrinter <Category>    treePrinter = new TreeView <Category>(appSettings); //tree category printer
            IItemsView listPrinter = new ItemsView(appSettings);                           //list items printer

            RecipeView recipeView = new RecipeView(fileUnit, topView);                     //to show selected recipe
            TreeNavigator <TopCategory> topNavigator  = new TreeNavigator <TopCategory>();
            TreeNavigator <Category>    treeNavigator = new TreeNavigator <Category>();    //tree navigator
            ListNavigator listNavigator = new ListNavigator(arrowsFull, listPrinter);      //list navigator

            IItemChooseView
                ingredientChooserView =
                new ItemChooseView(fileUnit);                                          //view for choose ingredients new recipe
            IRecipeCreatorView recipeCreatorView = new RecipeCreatorView(fileUnit);    //all recipe creator view
            IItemCreator       itemCreator       = new ItemCreator(topView, fileUnit); //ingredient creator view

            while (true)
            {
                topView.ShowMenu(string.Empty);

                ICategory mainMenuItem = topNavigator.Navigate(fileUnit.TopMenu.GetAll(), arrowsSimple,
                                                               topPrinter, appSettings.AutoexpandTree);

                switch (mainMenuItem.Id)
                {
                case 1:     //working with recipes

                    ICategory recipeCategory = treeNavigator.Navigate(fileUnit.Categories.GetAll(),
                                                                      arrowsFull, treePrinter, appSettings.AutoexpandTree);

                    RecipesSelector recipesSelector = new RecipesSelector();     //recipes selector for displaying

                    if (recipeCategory == null)
                    {
                        break;
                    }

                    topView.ShowMenu(recipeCategory.Name);

                    var recipesIn = recipesSelector.SelectRecipes(recipeCategory,
                                                                  fileUnit.Recipes.GetAll(), fileUnit.Categories.GetAll());

                    var recipeChosen =
                        listNavigator.Navigate(recipesIn, out var action, false);

                    if (recipeChosen == null && action == Action.Create)
                    {
                        Recipe newRecipe = new Recipe();

                        topView.ShowMenu($"Категория {recipeCategory.Name} > Новый рецепт . " +
                                         $"Выберите ингридиенты c помощью Space", true);

                        var selectedIingredients =
                            ingredientChooserView.Choose(listNavigator, itemCreator);     //Get ingredients

                        topView.ShowMenu($"Категория {recipeCategory.Name} > Новый рецепт ");

                        recipeCreatorView.FillRecipe(newRecipe, selectedIingredients, recipeCategory);
                    }

                    if (recipeChosen != null && action == Action.Select)
                    {
                        recipeView.ShowRecipe(recipeChosen);
                    }

                    break;

                case 2:     // working with ingredients

                    Action action1;

                    do
                    {
                        topView.ShowMenu(mainMenuItem.Name);

                        var ingredientChosen = listNavigator.Navigate(fileUnit.Ingredients.GetListables(),
                                                                      out action1, false);

                        if (ingredientChosen == null && action1 == Action.Create)
                        {
                            topView.ShowMenu(string.Empty);

                            itemCreator.Create();
                        }
                    } while (action1 != Action.Esc);

                    break;

                case 3:
                    fileUnit.Dispose(true);

                    return;
                }
            }
        }
Exemple #19
0
        void ReleaseDesignerOutlets()
        {
            if (Actor_Name != null)
            {
                Actor_Name.Dispose();
                Actor_Name = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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