コード例 #1
0
ファイル: Tutorial.cs プロジェクト: kkarmazaite/VRMultiplayer
    public void Help(int n)
    {
        switch (n)
        {
        case 0:
            i++;
            if (i == 2)
            {
                text1.SetActive(false);
                text2.SetActive(true);
            }
            else if (i == 3)
            {
                text2.SetActive(false);
                text3.SetActive(true);
            }
            else if (i == 4)
            {
                text3.SetActive(false);
                text4.SetActive(true);
                NextBtn.SetActive(false);
            }
            break;

        case 1:
            menuIcon.SetActive(true);
            GameObject.Find("Me").GetComponent <Movement> ().Position(false);
            gameObject.SetActive(false);
            break;
        }
    }
コード例 #2
0
        ///// <summary>
        ///// Clicks the user-specified button or link and then waits for a window to close or open, or a page to load,
        ///// depending on the button that was clicked
        ///// </summary>
        ///// <param name="buttonOrLinkElem">The element to click on</param>
        public dynamic ClickToAdvance(IWebElement buttonOrLinkElem)
        {
            if (Browser.Exists(Bys.PGYAssignmentPage.SaveExitBtn))
            {
                if (buttonOrLinkElem.GetAttribute("outerHTML") == SaveExitBtn.GetAttribute("outerHTML"))
                {
                    Browser.WaitForElement(Bys.AMAPage.LoadIcon, ElementCriteria.IsNotVisible);
                    // ElemSet.ScrollToElement(Browser, buttonOrLinkElem);
                    SaveExitBtn.Click();
                    Browser.WaitForElement(Bys.CurriculumMngPage.SearchTxt, TimeSpan.FromSeconds(300), ElementCriteria.IsVisible);
                    Browser.WaitForElement(Bys.AMAPage.LoadIcon, TimeSpan.FromSeconds(120), ElementCriteria.IsNotVisible);
                    return(new CurriculumMngPage(Browser));
                }
            }
            if (Browser.Exists(Bys.PGYAssignmentPage.NextBtn))
            {
                if (buttonOrLinkElem.GetAttribute("outerHTML") == NextBtn.GetAttribute("outerHTML"))
                {
                    Browser.WaitForElement(Bys.AMAPage.LoadIcon, TimeSpan.FromSeconds(120), ElementCriteria.IsNotVisible);
                    Thread.Sleep(1000);
                    // ElemSet.ScrollToElement(Browser, buttonOrLinkElem);
                    NextBtn.Click();
                    Browser.WaitForElement(Bys.AssignSummaryPage.EditProgramSummarytbl, TimeSpan.FromSeconds(180), ElementCriteria.IsVisible, ElementCriteria.IsEnabled);
                    Browser.WaitForElement(Bys.AMAPage.LoadIcon, TimeSpan.FromSeconds(120), ElementCriteria.IsNotVisible);
                    return(new AssignSummaryPage(Browser));
                }
            }

            else
            {
                throw new Exception("No button or link was found with your passed parameter. You either need to add this button to a new If statement, or if the button is already added, then the page you were on did not contain the button.");
            }

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

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

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

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

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

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

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

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

            if (TitleLbl != null)
            {
                TitleLbl.Dispose();
                TitleLbl = null;
            }
        }
コード例 #4
0
        void SetStyling()
        {
            DateContainer.Layer.CornerRadius = 8;

            DatePicker.Superview.Layer.CornerRadius = 12;
            DatePicker.MinimumDate = (NSDate)DateTime.SpecifyKind(_viewModel.MinimumDate, DateTimeKind.Utc);
            DatePicker.MaximumDate = (NSDate)DateTime.SpecifyKind(_viewModel.MaximumDate, DateTimeKind.Utc);

            NextBtn.SetTitle(QuestionnaireViewModel.REGISTER_QUESTIONAIRE_NEXT, UIControlState.Normal);
        }
コード例 #5
0
 public static void SiginOperation(string emailOrPhone, string password)
 {
     // SignInBtm.Click();
     //  ChangeLanguageForSignIn();
     Assert.IsTrue(IsAtEnterEmailOrPhoneScreen());
     EmailOrPhoneField.SendKeys(emailOrPhone);
     NextBtn.Click();
     Assert.IsTrue(IsAtEnterPasswordScreen());
     PasswordField.SendKeys(password);
     NextBtn.Click();
 }
コード例 #6
0
        /// <summary>
        /// Clicks the user-specified button or link and then waits for a window to close or open, or a page to load,
        /// depending on the button that was clicked
        /// </summary>
        /// <param name="buttonOrLinkElem">The element to click on</param>
        public dynamic ClickToAdvance(IWebElement buttonOrLinkElem)
        {
            if (Browser.Exists(Bys.AssignProgramPage.NextBtn))
            {
                if (buttonOrLinkElem.GetAttribute("outerHTML") == NextBtn.GetAttribute("outerHTML"))
                {
                    //ElemSet.ScrollToElement(Browser, NextBtn);
                    NextBtn.Click();
                    Browser.WaitForElement(Bys.AMAPage.LoadIcon, TimeSpan.FromSeconds(120), ElementCriteria.IsNotVisible);
                    AssignSummaryPage ASP = new AssignSummaryPage(Browser);
                    ASP.WaitForInitialize();
                    return(ASP);
                }
            }
            else
            {
                throw new Exception("No button or link was found with your passed parameter. You either need to add this button to a new If statement, or if the button is already added, then the page you were on did not contain the button.");
            }

            return(null);
        }