Ejemplo n.º 1
0
 private void AddFilter(DataboundGridForm databoundGridForm, PropertyPath propertyPath,
     IFilterOperation filterOperation, string filterOperand)
 {
     var viewEditor = ShowDialog<ViewEditor>(databoundGridForm.NavBar.CustomizeView);
     RunUI(() =>
     {
         viewEditor.ViewName = "Custom View";
         viewEditor.TabControl.SelectTab(1);
         Assert.IsTrue(viewEditor.FilterTab.TrySelectColumn(propertyPath));
         int iFilter = viewEditor.ViewInfo.Filters.Count;
         viewEditor.FilterTab.AddSelectedColumn();
         viewEditor.FilterTab.SetFilterOperation(iFilter, filterOperation);
         if (null != filterOperand)
         {
             viewEditor.FilterTab.SetFilterOperand(iFilter, filterOperand);
         }
     });
     OkDialog(viewEditor, viewEditor.OkDialog);
     WaitForConditionUI(() => databoundGridForm.IsComplete);
 }
Ejemplo n.º 2
0
 private void AssertRowCount(int expectedRowCount, DataboundGridForm databoundGridForm)
 {
     if (!TryWaitForCondition(() =>databoundGridForm.IsComplete && (expectedRowCount == databoundGridForm.BindingListSource.Count)))
         Assert.AreEqual(expectedRowCount, databoundGridForm.BindingListSource.Count, "wrong row count in databoundGridForm");
 }