コード例 #1
0
        private void StartGoThread()
        {
            GoBtn.Invoke(new MethodInvoker(() => GoBtn.Enabled = false));

            if (betaCB.Checked)
            {
                tableNameLabel.Invoke(new MethodInvoker(() => tableNameLabel.Text = "Beta"));
                AddTable("beta");
            }

            if (currentCB.Checked)
            {
                tableNameLabel.Invoke(new MethodInvoker(() => tableNameLabel.Text = "Current"));
                AddTable("current");
            }

            if (ProtoCB.Checked)
            {
                tableNameLabel.Invoke(new MethodInvoker(() => tableNameLabel.Text = "Proto"));
                AddTable("proto");
            }

            if (historyCB.Checked)
            {
                tableNameLabel.Invoke(new MethodInvoker(() => tableNameLabel.Text = "History"));
                AddTable("history");
            }

            GoBtn.Invoke(new MethodInvoker(() => GoBtn.Enabled = true));
        }
コード例 #2
0
        private void workcodeTB_KeyPress(object sender, KeyPressEventArgs e)
        {
            e.Handled = !char.IsDigit(e.KeyChar) && !char.IsControl(e.KeyChar);

            if (e.KeyChar == 13)
            {
                GoBtn.PerformClick();
            }
        }
コード例 #3
0
        public MainPage()
        {
            Loaded   += MainPage_Loaded;
            Unloaded += MainPage_Unloaded;
            this.InitializeComponent();

            robo = new SpeechRobo();

            UrlBar.GotFocus  += UrlBar_GotFocus;;
            UrlBar.LostFocus += UrlBar_LostFocus;

            GoBtn.Focus(FocusState.Keyboard);
        }
コード例 #4
0
 public DashboardPage ClickGoBtn()
 {
     WaitHelper.WaitForElementToBeClickable(GoBtn);
     GoBtn.Click();
     return(new DashboardPage(driver));
 }
コード例 #5
0
 public void SelectNewClaim(string claimName)
 {
     DropDownHelper.SelectByVisibleText(SelectPrmDropDown, claimName);
     GoBtn.Click();
     GenericHelper.WaitForLoadingMask();
 }
コード例 #6
0
 internal void GoToAppCatagory(string p)
 {
     Select.ByText(AppCat, p);
     GoBtn.Click();
     Wait.AM_Loaging_ShowAndHide();
 }