Esempio n. 1
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();
        }
Esempio n. 2
0
 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.SetupDelegates();

            this.olv.UseFiltering           = false;
            this.olv.ModelFilter            = null;
            this.olv.HierarchicalCheckboxes = false;
            this.olv.Roots = PersonDb.All.GetRange(0, NumberOfRoots);
            this.olv.DiscardAllState();
        }
Esempio n. 4
0
 public void TestSetup()
 {
     PersonDb.Reset();
 }
Esempio n. 5
0
 public void TestTearDown()
 {
     PersonDb.Reset();
     mainForm.Close();
 }
Esempio n. 6
0
 public void TestTearDown()
 {
     this.olv.UseNotifyPropertyChanged = false;
     PersonDb.Reset();
 }