using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace LoadTreeViewFromXml
{
    public partial class frm77LoadTreeViewFromXml : Form
    {
        public frm77LoadTreeViewFromXml()
        {
            InitializeComponent();
        }

        // Load the TreeView data.
        private void frm77LoadTreeViewFromXml_Load(object sender, EventArgs e)
        {
            itemsTreeView.LoadFromXmlFile("test.xml");
            itemsTreeView.ExpandAll();
        }


        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.itemsTreeView = new System.Windows.Forms.TreeView();
            this.SuspendLayout();
            // 
            // itemsTreeView
            // 
            this.itemsTreeView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
            | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.itemsTreeView.Location = new System.Drawing.Point(12, 12);
            this.itemsTreeView.Name = "itemsTreeView";
            this.itemsTreeView.Size = new System.Drawing.Size(270, 287);
            this.itemsTreeView.TabIndex = 2;
            // 
            // frm77LoadTreeViewFromXml
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(294, 311);
            this.Controls.Add(this.itemsTreeView);
            this.Name = "frm77LoadTreeViewFromXml";
            this.Text = "LoadTreeviewFromXml";
            this.Load += new System.EventHandler(this.frm77LoadTreeViewFromXml_Load);
            this.ResumeLayout(false);

        }

        #endregion

        internal System.Windows.Forms.TreeView itemsTreeView;
    }
}