Exemple #1
0
        //////////////////////////////////////////////////////////////////////////
        private void OnKeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.F9)
            {
                if (BtnToggleBreak.Enabled)
                {
                    BtnToggleBreak.PerformClick();
                }
            }
            else if (e.KeyCode == Keys.F5)
            {
                if (BtnContinue.Enabled)
                {
                    BtnContinue.PerformClick();
                }
            }
            // simulate both step-into and step-over shortcuts known from VS
            else if (e.KeyCode == Keys.F10 || e.KeyCode == Keys.F11)
            {
                if (BtnStep.Enabled)
                {
                    BtnStep.PerformClick();
                }
            }

            else if (e.KeyCode == Keys.Escape)
            {
                _Client.Server.ContinueExecution();
            }
        }
Exemple #2
0
        protected override void RegisterUIEvent()
        {
            BtnContinue.OnClickAsObservable().Subscribe(_ =>
            {
                //UIMgr.GetPanel<UIGamePanel>().mData.ShowCharacters = true;
                UIMgr.GetPanel <UIGamePanel>().Transform.Find("Characters").gameObject.SetActive(true);
                UIMgr.GetPanel <UIGamePanel>().Transform.Find("Emenys").gameObject.SetActive(true);
                CloseSelf();
            });

            BtnRestart.OnClickAsObservable().Subscribe(_ =>
            {
                //UIMgr.GetPanel<UIGamePanel>().mData.ShowCharacters = true;
                UIMgr.GetPanel <UIGamePanel>().Transform.Find("Characters").gameObject.SetActive(true);
                UIMgr.GetPanel <UIGamePanel>().Transform.Find("Emenys").gameObject.SetActive(true);
                CloseSelf();
            });
            BtnGiveUp.OnClickAsObservable().Subscribe(_ =>
            {
                CloseSelf();
                UIMgr.ClosePanel <UIGamePanel>();
            });

            BtnSetting.OnClickAsObservable().Subscribe(_ =>
            {
                UIMgr.OpenPanel <UIGamePauseSettingPanel>();
            });
        }
Exemple #3
0
        public void checkOutItem()
        {
            try
            {
                Common.waitForElementIsPresent("Check out", "id", "header_cart", Constants.TIME_OUT);
                BtnCount.Click();
                ExReports.reportPass("'Check out' is clicked");

                WebDriverWait wait = new WebDriverWait(driver, TimeSpan.FromSeconds(Constants.TIME_OUT));
                wait.Until(ExpectedConditions.TextToBePresentInElement(Count, getCount));
                ExReports.reportPass("1 item is on the card");

                //Common.waitForElementIsPresent("Continue button", "classname", "step2", Constants.TIME_OUT);
                Common.waitForElementIsPresent("Continue button", "xpath", "//span[contains(.,'Continue')]", Constants.TIME_OUT);
                BtnContinue.Click();
                ExReports.reportPass("'Continue' button is clicked");
            }
            catch (Exception e)
            {
                ExReports.reportFail("Check out item" + e.Message);
                throw;
            }
        }
Exemple #4
0
 private void BtnCheckAll_Click(object sender, EventArgs e)
 {
     SetItemsChecked(x => true, true);
     BtnContinue.Enabled = true;
     BtnContinue.Focus(); //Fokus auf weiter-Button
 }
 private void ClickButtonContinue()
 {
     BtnContinue.Click();
 }