private TextsTriStateTreeView CreateViewWithEmptyBook()
		{
			var treeView = new TestTextsTriStateTreeView();
			var dummyVersesNode = new TreeNode(TextsTriStateTreeView.ksDummyName) { Name = TextsTriStateTreeView.ksDummyName };
			m_bookNode = new TreeNode("II Hezekiah", new[] { dummyVersesNode }) { Name = "Book", Tag = 7 };
			m_testamentNode = new TreeNode(FwControls.kstidOtNode, new[] { m_bookNode }) { Name = "Testament" };
			m_bibleNode = new TreeNode(FwControls.kstidBibleNode, new[] { m_testamentNode }) { Name = "Bible" };
			treeView.Nodes.Add(m_bibleNode);
			EnableEventHandling(treeView);
			return treeView;
		}
Example #2
0
        private TextsTriStateTreeView CreateViewWithEmptyBook()
        {
            var treeView        = new TestTextsTriStateTreeView();
            var dummyVersesNode = new TreeNode(TextsTriStateTreeView.ksDummyName)
            {
                Name = TextsTriStateTreeView.ksDummyName
            };

            m_bookNode = new TreeNode("II Hezekiah", new[] { dummyVersesNode })
            {
                Name = "Book", Tag = 7
            };
            m_testamentNode = new TreeNode(ITextStrings.kstidOtNode, new[] { m_bookNode })
            {
                Name = "Testament"
            };
            m_bibleNode = new TreeNode(ITextStrings.kstidBibleNode, new[] { m_testamentNode })
            {
                Name = "Bible"
            };
            treeView.Nodes.Add(m_bibleNode);
            EnableEventHandling(treeView);
            return(treeView);
        }