Esempio n. 1
0
        private bool onKeyPressed(object sender, Keys k)
        {
            switch (k)
            {
            case Keys.Escape:
                backButton.Click();
                return(true);
            }

            return(false);
        }
Esempio n. 2
0
        private bool KeyboardHandler_OnKeyRepeat(object sender, Keys k, bool first)
        {
            if (!first)
            {
                return(false);
            }

            switch (k)
            {
            case Keys.Escape:
                backButton.Click();
                return(true);

            case Keys.Enter:
                nextSearchUpdate = GameBase.Time;
                return(true);
            }

            return(false);
        }
 public void ClickBackButton()
 {
     BackButton.Click();
 }
Esempio n. 4
0
        /// <summary>
        /// Returning to My Account Page
        /// </summary>
        /// <returns>MyAccountPage.MyAccountPage</returns>

        public MyAccountPage.MyAccountPage ClickToBackButton()
        {
            BackButton.Click();
            return(new MyAccountPage.MyAccountPage());
        }