public void InitEachTest() {
     mainForm = new MainForm();
     mainForm.Size = new Size();
     mainForm.Show();
     this.olv = GetObjectListView();
     this.olv.UseNotifyPropertyChanged = true;
 }
 public void SetupTest() {
     PersonDb.Reset();
     mainForm = new MainForm();
     mainForm.Size = new Size();
     mainForm.Show();
     this.olv = GetObjectListView();
 }
        public void InitEachTest() {
            PersonDb.Reset();

            mainForm = new MainForm();
            mainForm.Size = new Size();
            mainForm.Show();
            this.olv = mainForm.treeListView1;

            this.olv.CanExpandGetter = delegate(Object x) {
                return ((Person)x).Children.Count > 0;
            };
            this.olv.ChildrenGetter = delegate(Object x) {
                return ((Person)x).Children;
            };
            // this is only used when HierarchicalCheckboxes is true
            this.olv.ParentGetter = delegate(object child) {
                return ((Person)child).Parent;
            };

            this.olv.UseFiltering = false;
            this.olv.ModelFilter = null;
            this.olv.HierarchicalCheckboxes = false;
            this.olv.Roots = PersonDb.All.GetRange(0, NumberOfRoots);
            this.olv.DiscardAllState();
        }
        public void InitEachTest() {
            mainForm = new MainForm();
            mainForm.Size = new Size();
            mainForm.Show();
            this.olv = GetObjectListView();

            if (!this.olv.CheckBoxes)
                this.olv.CheckBoxes = true;

            this.olv.SetObjects(PersonDb.All);
            this.olv.CheckedObjects = null;
            this.olv.TriStateCheckBoxes = false;
        }