Exemple #1
0
        private void RebuildTree()
        {
            toolTip1.SetToolTip(treePanel, "");
            _tree2 = _data2.GetTree();
            TreeHelpers <UnionData> .CalculateNodePositions(_tree2);

            CalculateControlSize2();
            treePanel.Invalidate();
        }
Exemple #2
0
        public Form1()
        {
            InitializeComponent();

            _data = GetSampleData();
            _tree = GetSampleTree(_data);
            TreeHelpers <SampleDataModel> .CalculateNodePositions(_tree);

            CalculateControlSize();

            DoubleBuffered   = true;
            treePanel.Paint += treePanel_Paint;
        }