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

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

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

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

            if (TitleLabel != null)
            {
                TitleLabel.Dispose();
                TitleLabel = null;
            }
        }
Exemplo n.º 2
0
 public void ShowConfirm(bool y)
 {
     if (y)
     {
         ConfirmPanel.SetActive(true);
         ShopButton.SetActive(false);
         BtnAvatar.SetActive(false);
         InfoButton.GetComponent <Button>().interactable           = false;
         SettingsButton.GetComponent <Button>().interactable       = false;
         AccountBtnIcon.GetComponent <Button>().interactable       = false;
         LeaderButton.GetComponent <Button>().interactable         = false;
         PlayScreen.GetComponentInChildren <Button>().interactable = false;
         Camera.GetComponent <CameraController>().enabled          = false;
     }
     else
     {
         ConfirmPanel.SetActive(false);
         ShopButton.SetActive(true);
         BtnAvatar.SetActive(true);
         InfoButton.GetComponent <Button>().interactable           = true;
         SettingsButton.GetComponent <Button>().interactable       = true;
         PlayScreen.GetComponentInChildren <Button>().interactable = true;
         AccountBtnIcon.GetComponent <Button>().interactable       = true;
         LeaderButton.GetComponent <Button>().interactable         = true;
         Camera.GetComponent <CameraController>().enabled          = true;
     }
 }
Exemplo n.º 3
0
 private void SeutpShadows()
 {
     InfoButton.AddShadow();
     OrdersButton.AddShadow();
     FavoritesButton.AddShadow();
     SecurityButton.AddShadow();
 }
Exemplo n.º 4
0
 public void ShowModesPage(bool y)
 {
     if (y)
     {
         PlayScreen.SetActive(false);
         InfoButton.SetActive(false);
         TextMeshHome.SetActive(false);
         LeaderButton.SetActive(false);
         SettingsButton.SetActive(false);
         AccountBtnIcon.SetActive(false);
         ShopButton.SetActive(false);
         BtnAvatar.SetActive(false);
         BackToHomeButton.SetActive(true);
         ModesPage.SetActive(true);
     }
     else
     {
         BackToHomeButton.SetActive(false);
         ModesPage.SetActive(false);
         PlayScreen.SetActive(true);
         InfoButton.SetActive(true);
         TextMeshHome.SetActive(true);
         LeaderButton.SetActive(true);
         SettingsButton.SetActive(true);
         AccountBtnIcon.SetActive(true);
         ShopButton.SetActive(true);
         BtnAvatar.SetActive(true);
     }
 }
Exemplo n.º 5
0
 public void ShowLeaderBoardPanel(bool r)
 {
     if (r)
     {
         leaderboardWindow.SetActive(true);
         ShopButton.SetActive(false);
         BtnAvatar.SetActive(false);
         InfoButton.GetComponent <Button>().interactable           = false;
         SettingsButton.GetComponent <Button>().interactable       = false;
         AccountBtnIcon.GetComponent <Button>().interactable       = false;
         LeaderButton.GetComponent <Button>().interactable         = false;
         PlayScreen.GetComponentInChildren <Button>().interactable = false;
         Camera.GetComponent <CameraController>().enabled          = false;
     }
     else
     {
         leaderboardWindow.SetActive(false);
         ShopButton.SetActive(true);
         BtnAvatar.SetActive(true);
         InfoButton.GetComponent <Button>().interactable           = true;
         SettingsButton.GetComponent <Button>().interactable       = true;
         PlayScreen.GetComponentInChildren <Button>().interactable = true;
         AccountBtnIcon.GetComponent <Button>().interactable       = true;
         LeaderButton.GetComponent <Button>().interactable         = true;
         Camera.GetComponent <CameraController>().enabled          = true;
     }
 }
Exemplo n.º 6
0
        private void StartGameButton_Click(object sender, EventArgs e)
        {
            if (SmallFigureRadioButton.Checked)
            {
                Figure.CUBE_SIZE = 10;
            }
            else if (MediumFigureRadioButton.Checked)
            {
                Figure.CUBE_SIZE = 20;
            }
            else if (BigFigureRadioButton.Checked)
            {
                Figure.CUBE_SIZE = 30;
            }
            else
            {
                Figure.CUBE_SIZE = 20;
            }

            Size = new Size(25 * Figure.CUBE_SIZE, 25 * Figure.CUBE_SIZE);

            tetrisGamePanel.Location = new Point(Figure.CUBE_SIZE, 10);
            tetrisGamePanel.Size     = new Size(10 * Figure.CUBE_SIZE, 20 * Figure.CUBE_SIZE);
            nextFigurePanel.Size     = new Size(5 * Figure.CUBE_SIZE, 5 * Figure.CUBE_SIZE);

            ScoreHeaderLabel.Location = new Point(tetrisGamePanel.Right + Figure.CUBE_SIZE, tetrisGamePanel.Top);
            ScoreHeaderLabel.Size     = new Size(5 * Figure.CUBE_SIZE, 2 * Figure.CUBE_SIZE);
            ScoreHeaderLabel.Font     = new Font("Microsoft Sans Serif", Figure.CUBE_SIZE);

            ScoreLabel.Location = new Point(ScoreHeaderLabel.Left, ScoreHeaderLabel.Bottom + 10);
            ScoreLabel.Size     = new Size(5 * Figure.CUBE_SIZE, 2 * Figure.CUBE_SIZE);
            ScoreLabel.Font     = new Font("Microsoft Sans Serif", Figure.CUBE_SIZE);
            ScoreLabel.Text     = gameScore.ToString();

            nextFigurePanel.Location = new Point(tetrisGamePanel.Right + Figure.CUBE_SIZE, ScoreLabel.Bottom + 20);

            tetrisGamePanelCanvas = tetrisGamePanel.CreateGraphics();
            nextFigurePanelCanvas = nextFigurePanel.CreateGraphics();

            tetrisGamePanel.Show();
            nextFigurePanel.Show();
            ScoreHeaderLabel.Show();

            StartGameButton.Enabled         = false;
            InfoButton.Enabled              = false;
            SmallFigureRadioButton.Enabled  = false;
            MediumFigureRadioButton.Enabled = false;
            BigFigureRadioButton.Enabled    = false;

            StartGameButton.Hide();
            InfoButton.Hide();
            FigureSizeLabel.Hide();
            SmallFigureRadioButton.Hide();
            MediumFigureRadioButton.Hide();
            BigFigureRadioButton.Hide();

            cubes = new List <KeyValuePair <Point, Brush> >();
            tetrisGamePanel.Invalidate();
            StartGame();
        }
Exemplo n.º 7
0
 public void ShowAcountPanel(bool e)
 {
     if (e)
     {
         AcountPanel.SetActive(true);
         AccountButton.SetActive(false);
         InfoButton.SetActive(false);
         SettingsButton.SetActive(false);
         LeaderButton.SetActive(false);
         PlayScreen.SetActive(false);
         ShopButton.SetActive(false);
         BtnAvatar.SetActive(false);
         Camera.GetComponent <CameraController>().enabled = false;
     }
     else
     {
         AcountPanel.SetActive(false);
         AccountButton.SetActive(true);
         InfoButton.SetActive(true);
         SettingsButton.SetActive(true);
         LeaderButton.SetActive(true);
         ShopButton.SetActive(true);
         BtnAvatar.SetActive(true);
         PlayScreen.SetActive(true);
         Camera.GetComponent <CameraController>().enabled = true;
     }
 }
Exemplo n.º 8
0
        protected async override void OnAppearing()
        {
            base.OnAppearing();

            // fetch the demo credentials
            await ViewModel.LoadDemoCredentials();

            // pause for a moment before animations
            await Task.Delay(App.AnimationSpeed);

            // Sequentially animate the login buttons. ScaleTo() makes them "grow" from a singularity to the full button size.
            await SignInButton.ScaleTo(1, (uint)App.AnimationSpeed, Easing.SinIn);

            await SkipSignInButton.ScaleTo(1, (uint)App.AnimationSpeed, Easing.SinIn);

            // Using Task.WhenAll() allows these two animations to be run in parallel.
            await Task.WhenAll(new []
            {
                // FadeTo() modifies the Opacity property of the given VisualElements over a given duration.
                XamarinLogo.FadeTo(1, (uint)App.AnimationSpeed, Easing.SinIn),
                InfoButton.FadeTo(1, (uint)App.AnimationSpeed, Easing.SinIn)
            });

            Insights.Track(InsightsReportingConstants.PAGE_SPLASH);
        }
Exemplo n.º 9
0
 void ReleaseDesignerOutlets()
 {
     if (batteryButton != null)
     {
         batteryButton.Dispose();
         batteryButton = null;
     }
     if (commissionButton != null)
     {
         commissionButton.Dispose();
         commissionButton = null;
     }
     if (configureButton != null)
     {
         configureButton.Dispose();
         configureButton = null;
     }
     if (connectionStateLabel != null)
     {
         connectionStateLabel.Dispose();
         connectionStateLabel = null;
     }
     if (InfoButton != null)
     {
         InfoButton.Dispose();
         InfoButton = null;
     }
     if (inventorySwitch != null)
     {
         inventorySwitch.Dispose();
         inventorySwitch = null;
     }
     if (locateButton != null)
     {
         locateButton.Dispose();
         locateButton = null;
     }
     if (readButton != null)
     {
         readButton.Dispose();
         readButton = null;
     }
     if (tableView != null)
     {
         tableView.Dispose();
         tableView = null;
     }
     if (writeButton != null)
     {
         writeButton.Dispose();
         writeButton = null;
     }
 }
Exemplo n.º 10
0
        public TetrisGame(MainMenuForm mainMenu)
        {
            InitializeComponent();
            this.mainMenu = mainMenu;

            tetrisGamePanel.Hide();
            nextFigurePanel.Hide();
            ScoreHeaderLabel.Hide();

            StartGameButton.Show();
            InfoButton.Show();

            Size = new Size(280, 280);
        }
Exemplo n.º 11
0
    //SFX--

    public void Resume()
    {
        AudioSource audio = gameObject.GetComponent <AudioSource>();

        audio.Play();
        StartCoroutine(Wait());
        Level.SetActive(true);
        if (Shaft_with_spokes)
        {
            Shaft_with_spokes.SetActive(true);
        }
        InfoButton.SetActive(true);
        Pause_Menu.SetActive(false);
        PauseButton.SetActive(true);
    }
Exemplo n.º 12
0
        void ReleaseDesignerOutlets()
        {
            if (InfoButton != null)
            {
                InfoButton.Dispose();
                InfoButton = null;
            }

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

            if (PromptLabel != null)
            {
                PromptLabel.Dispose();
                PromptLabel = null;
            }
        }
Exemplo n.º 13
0
        void ReleaseDesignerOutlets()
        {
            if (InfoButton != null)
            {
                InfoButton.Dispose();
                InfoButton = null;
            }

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

            if (TaskDescription != null)
            {
                TaskDescription.Dispose();
                TaskDescription = null;
            }
        }
Exemplo n.º 14
0
    public void InfoLevel2Selected()
    {
        AudioSource audio = gameObject.GetComponent <AudioSource>();

        audio.Play();
        StartCoroutine(Wait());
        Level.SetActive(false);
        if (Shaft_with_spokes)
        {
            Shaft_with_spokes.SetActive(false);
        }
        InfoButton.SetActive(false);
        Pause_Menu.SetActive(false);
        PauseButton.SetActive(false);
        if (InstructionScreen)
        {
            InstructionScreen.SetActive(true);
            ObjectDescription.SetActive(true);
            LevelBackground.SetActive(false);
        }
    }
Exemplo n.º 15
0
        void ReleaseDesignerOutlets()
        {
            if (AppNameLabel != null)
            {
                AppNameLabel.Dispose();
                AppNameLabel = null;
            }

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

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

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

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

            if (UserIDTextView != null)
            {
                UserIDTextView.Dispose();
                UserIDTextView = null;
            }
        }
Exemplo n.º 16
0
 public void InfoPage(bool y)
 {
     if (y)
     {
         PlayScreen.SetActive(false);
         InfoButton.SetActive(false);
         ShopButton.SetActive(false);
         BtnAvatar.SetActive(false);
         BackToHomeButton.SetActive(true);
         InfoPanel.SetActive(true);
         TextMeshHome.SetActive(false);
     }
     else
     {
         PlayScreen.SetActive(true);
         InfoButton.SetActive(true);
         ShopButton.SetActive(true);
         BtnAvatar.SetActive(true);
         BackToHomeButton.SetActive(false);
         InfoPanel.SetActive(false);
         TextMeshHome.SetActive(true);
     }
 }
Exemplo n.º 17
0
 void Update()
 {
     Classic = StartButton.GetComponent <ClickItem>().Clicked;
     if (Classic == true)
     {
         ClassicStart();
     }
     Quit = QuitButton.GetComponent <ClickItem>().Clicked;
     if (Quit == true)
     {
         QuitGame();
     }
     Info = InfoButton.GetComponent <ClickItem>().Clicked;
     if (Info == true)
     {
         InfoStart();
     }
     Credits = CreditsButton.GetComponent <ClickItem>().Clicked;
     if (Credits == true)
     {
         CreditsStart();
     }
 }
Exemplo n.º 18
0
        void ReleaseDesignerOutlets()
        {
            if (AnnotationButton != null)
            {
                AnnotationButton.Dispose();
                AnnotationButton = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if (GotoButton != null)
            {
                GotoButton.Dispose();
                GotoButton = null;
            }
        }
Exemplo n.º 19
0
        public override void build()
        {
            base.build();
            background = new StaticObject(".\\Sprites\\rufusConcept");
            background.init(content);
            addChild(background);

            outt = false;

            ButtonModel playModel = new ButtonModel(".\\Sprites\\GUI\\playButtonNew\\playButtonNew", ".\\Sprites\\GUI\\playButtonNew\\playButtonNewXML", null);


            soundButton = new SoundButton(null);
            soundButton.init(content);
            soundButton.position.X = 700f;
            soundButton.position.Y = 40f;

            infoButton = new InfoButton(Game1.showDevCard);
            infoButton.init(content);
            infoButton.position.X = 40f;
            infoButton.position.Y = 40f;

            playButton            = new SimpleButton(playModel, "", new Point(), gotoGame);
            playButton.fontMargin = new Vector2(55, 15);
            playButton.fontScale  = 1;
            playButton.init(content);
            playButton.position.Y = 480;
            playButton.position.X = 500;
            playButton.tweener    = new Tweener(playButton.position.Y, 350f, TimeSpan.FromSeconds(1.0f), Back.EaseOut);
            playButton.tweener.Start();

            ButtonModel shopModel = new ButtonModel(".\\Sprites\\GUI\\shopButton\\shopButton", ".\\Sprites\\GUI\\shopButton\\shopButtonXML", null);

            shopButton            = new SimpleButton(shopModel, "", new Point(), gotoShop);
            shopButton.fontMargin = new Vector2(55, 15);
            shopButton.fontScale  = 1;
            shopButton.init(content);
            shopButton.position.Y = 480;
            shopButton.position.X = 148;
            shopButton.tweener    = new Tweener(shopButton.position.Y, 350f, TimeSpan.FromSeconds(1.0f), Back.EaseOut);
            shopButton.tweener.Start();

            statisticsButton = new StatisticsButton(openStatistic);
            statisticsButton.init(content);
            statisticsButton.position.Y = 480;
            statisticsButton.position.X = 40;
            statisticsButton.tweener    = new Tweener(statisticsButton.position.Y, 350f, TimeSpan.FromSeconds(1.0f), Back.EaseOut);
            statisticsButton.tweener.Start();

            ButtonModel logoModel = new ButtonModel(".\\Sprites\\GUI\\rufusLogo", "", null);

            logoButton = new SimpleButton(logoModel, "", new Point(), null);
            logoButton.init(content);
            logoButton.position.Y = -100;
            logoButton.position.X = 140;
            logoButton.tweener    = new Tweener(logoButton.position.Y, 20f, TimeSpan.FromSeconds(1.0f), Back.EaseOut);
            logoButton.tweener.Start();

            starsLabel = new IncrementalLabel(0, ButtonFactory.spriteFont);
            starsLabel.init(content);
            starsLabel.newValue(GameModel.currentPoints);
            starsLabel.position.Y = shopButton.position.Y + 25;
            starsLabel.position.X = shopButton.position.X + 72;
            starsLabel.fontSize   = 0.8f;

            addChild(playButton);
            addChild(shopButton);
            addChild(statisticsButton);
            addChild(logoButton);
            addChild(starsLabel);
            addChild(soundButton);
            addChild(infoButton);
        }
        void ReleaseDesignerOutlets()
        {
            if (ScrollView != null)
            {
                ScrollView.Dispose();
                ScrollView = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if (YesSinceLargeBtn != null)
            {
                YesSinceLargeBtn.Dispose();
                YesSinceLargeBtn = null;
            }
        }
Exemplo n.º 21
0
        void ReleaseDesignerOutlets()
        {
            if (AILogo != null)
            {
                AILogo.Dispose();
                AILogo = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if (TopRight_Button != null)
            {
                TopRight_Button.Dispose();
                TopRight_Button = null;
            }
        }
Exemplo n.º 22
0
        void ReleaseDesignerOutlets()
        {
            if (EditAnnotationButton != null)
            {
                EditAnnotationButton.Dispose();
                EditAnnotationButton = null;
            }

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

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

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

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

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

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

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

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

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

            if (ShareCustomMenu != null)
            {
                ShareCustomMenu.Dispose();
                ShareCustomMenu = null;
            }
        }
Exemplo n.º 23
0
        void ReleaseDesignerOutlets()
        {
            if (ActiveItems_Label != null)
            {
                ActiveItems_Label.Dispose();
                ActiveItems_Label = null;
            }

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

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

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

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

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

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

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

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

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

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

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