public static void CommonFilterDlg_btnAccept_Handler(string name, IntPtr ptr, Form form)
        {
            CommonFilterDlg cfDlg = ((CommonFilterDlg)form);

            Assert.IsNotNull(cfDlg.Base);

            IListManager listMan = cfDlg.ListMan;

            SelectTab("tabsFilters", form, 0);

            var dataGridView1 = new DataGridViewTester("dataGridView1", form);

            dataGridView1.SelectCell(0, 0);
            dataGridView1.Properties.BeginEdit(false);
            dataGridView1.Properties.EndEdit();
            dataGridView1.SelectCell(0, 1);
            dataGridView1.Properties.BeginEdit(false);
            dataGridView1.Properties.EndEdit();
            dataGridView1.SelectCell(0, 2);
            dataGridView1.Properties.BeginEdit(false);
            dataGridView1.Properties.EndEdit();

            // Fail: AmbiguousMatch?!
            //dataGridView1.FireEvent("Scroll", new ScrollEventArgs(ScrollEventType.SmallIncrement, 1));

            if (form is PersonsFilterDlg)
            {
                PersonsFilterDlgTests.PersonsFilterDlg_Handler(form);
            }

            ClickButton("btnAccept", form);
        }
        public override void Setup()
        {
            fBase    = new BaseWindowStub();
            fContext = fBase.Context;
            fListMan = new IndividualListMan(fContext);

            fDialog = new CommonFilterDlg(fBase, fListMan);
            fDialog.Show();
        }
        public override void Setup()
        {
            base.Setup();

            fBase    = new BaseWindowStub();
            fContext = fBase.Context;
            fListMan = new IndividualListMan(fContext);

            //ExpectModal("CommonFilterDlg", "DlgHandler");
            fDialog = new CommonFilterDlg(fBase, fListMan);
            //fDialog.ShowDialog();
            fDialog.Show();
        }