public void InitEachTest() {
     mainForm = new MainForm();
     mainForm.Size = new Size();
     mainForm.Show();
     this.olv = GetObjectListView();
     this.olv.UseNotifyPropertyChanged = true;
 }
Ejemplo n.º 2
0
 public void SetupTest() {
     PersonDb.Reset();
     mainForm = new MainForm();
     mainForm.Size = new Size();
     mainForm.Show();
     this.olv = GetObjectListView();
 }
Ejemplo n.º 3
0
        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;
        }