Beispiel #1
0
        public SchemaParserToTree(TreeView tree, SchemaParser parser)
        {
            this.parser = parser;
            this.tree   = tree;

            this.tree.Nodes.Clear();
        }
Beispiel #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            OFD.ShowDialog();

            if (File.Exists(OFD.FileName))
            {
                textBox1.Text = OFD.FileName;
                sp2           = new SchemaParser(OFD.FileName);
                s2t           = new SchemaParserToTree(XMLTree, sp2);
                s2t.GetElements();
            }
        }