private void documentList_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            object selectedVal = documentList.SelectedValue;
            string name        = selectedVal.ToString();
            string filename    = documentLabel.Content.ToString() + @"\" + name + ".dtree";

            ITreeIO   tio  = new TreeIO();
            IDataTree tree = tio.LoadDataTree(filename);

            DocumentTreeWrapper wrapper = new DocumentTreeWrapper(tree);

            dataTree.ItemsSource = wrapper.Tree;
        }
        private void loadDataTreeButton_Click(object sender, RoutedEventArgs e)
        {
            OpenFileDialog ofd = new OpenFileDialog();

            ofd.FileName   = "Tree";
            ofd.DefaultExt = ".dtree";
            ofd.Filter     = "Data Tree Files (.dtree)|*.dtree";

            Nullable <bool> result = ofd.ShowDialog();

            if (result == true)
            {
                string    filename = ofd.FileName;
                TreeIO    io       = new TreeIO();
                IDataTree tree     = io.LoadDataTree(filename);

                DocumentTreeWrapper wrapper = new DocumentTreeWrapper(tree);

                dataTree.ItemsSource = wrapper.Tree;
            }
        }