예제 #1
0
 void SearchTransactionView()
 {
     if (this.transactions != null && this.quickFilter == null)
     {
         this.quickFilter = this.window.Element.FindQuickFilter();
         Assert.IsNotNull(this.quickFilter, "Cannot find quick filter control");
     }
     if (!string.IsNullOrEmpty(this.quickFilter.GetFilter()))
     {
         this.quickFilter.ClearSearch();
     }
     else
     {
         this.quickFilter.SetFilter("the");
     }
 }
예제 #2
0
        void FocusTransactionView()
        {
            window.CloseReport();
            this.transactions = window.FindTransactionGrid();
            this.quickFilter  = null;
            window.WaitForInputIdle(200);

            var selection = this.transactions.Selection;

            if (selection == null && this.transactions.Count > 0)
            {
                this.transactions.Select(this.transactions.Count - 1);
                this.transactions.ScrollToEnd();
                selection = this.transactions.Selection;
            }
            if (selection != null)
            {
                selection.Focus();
            }
            this.selectedTransaction = selection;
            this.editedValues        = new TransactionDetails();
        }