Click here to Skip to main content
15,883,796 members
Articles / Desktop Programming / XAML

LINQ to XSD

Rate me:
Please Sign up or sign in to vote.
4.75/5 (11 votes)
6 Nov 2008CPOL3 min read 100.5K   1.7K   65  
How to use LINQ through XSD and XML
namespace LINQtoXSDWindowsApplication1
{
    partial class Form1
    {
        /// <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.listBox1 = new System.Windows.Forms.ListBox();
            this.button_list_books = new System.Windows.Forms.Button();
            this.button_list_books_and_authors = new System.Windows.Forms.Button();
            this.button_modify_price = new System.Windows.Forms.Button();
            this.button_delete_book = new System.Windows.Forms.Button();
            this.button_create_book = new System.Windows.Forms.Button();
            this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
            this.dataGridView1 = new System.Windows.Forms.DataGridView();
            ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
            this.SuspendLayout();
            // 
            // listBox1
            // 
            this.listBox1.FormattingEnabled = true;
            this.listBox1.Location = new System.Drawing.Point(12, 41);
            this.listBox1.Name = "listBox1";
            this.listBox1.Size = new System.Drawing.Size(663, 82);
            this.listBox1.TabIndex = 0;
            // 
            // button_list_books
            // 
            this.button_list_books.Location = new System.Drawing.Point(12, 12);
            this.button_list_books.Name = "button_list_books";
            this.button_list_books.Size = new System.Drawing.Size(101, 23);
            this.button_list_books.TabIndex = 1;
            this.button_list_books.Text = "List books";
            this.button_list_books.UseVisualStyleBackColor = true;
            this.button_list_books.Click += new System.EventHandler(this.button_list_books_Click);
            // 
            // button_list_books_and_authors
            // 
            this.button_list_books_and_authors.Location = new System.Drawing.Point(121, 12);
            this.button_list_books_and_authors.Name = "button_list_books_and_authors";
            this.button_list_books_and_authors.Size = new System.Drawing.Size(140, 23);
            this.button_list_books_and_authors.TabIndex = 2;
            this.button_list_books_and_authors.Text = "List books and authors";
            this.button_list_books_and_authors.UseVisualStyleBackColor = true;
            this.button_list_books_and_authors.Click += new System.EventHandler(this.button_list_books_and_authors_Click);
            // 
            // button_modify_price
            // 
            this.button_modify_price.Location = new System.Drawing.Point(270, 12);
            this.button_modify_price.Name = "button_modify_price";
            this.button_modify_price.Size = new System.Drawing.Size(101, 23);
            this.button_modify_price.TabIndex = 3;
            this.button_modify_price.Text = "Modify price";
            this.button_modify_price.UseVisualStyleBackColor = true;
            this.button_modify_price.Click += new System.EventHandler(this.button_modify_price_Click);
            // 
            // button_delete_book
            // 
            this.button_delete_book.Location = new System.Drawing.Point(377, 12);
            this.button_delete_book.Name = "button_delete_book";
            this.button_delete_book.Size = new System.Drawing.Size(101, 23);
            this.button_delete_book.TabIndex = 4;
            this.button_delete_book.Text = "Delete a book";
            this.button_delete_book.UseVisualStyleBackColor = true;
            this.button_delete_book.Click += new System.EventHandler(this.button_delete_book_Click);
            // 
            // button_create_book
            // 
            this.button_create_book.Location = new System.Drawing.Point(484, 12);
            this.button_create_book.Name = "button_create_book";
            this.button_create_book.Size = new System.Drawing.Size(101, 23);
            this.button_create_book.TabIndex = 5;
            this.button_create_book.Text = "Create a book";
            this.button_create_book.UseVisualStyleBackColor = true;
            this.button_create_book.Click += new System.EventHandler(this.button_create_book_Click);
            // 
            // openFileDialog1
            // 
            this.openFileDialog1.FileName = "openFileDialog1";
            // 
            // dataGridView1
            // 
            this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            this.dataGridView1.Location = new System.Drawing.Point(12, 129);
            this.dataGridView1.Name = "dataGridView1";
            this.dataGridView1.Size = new System.Drawing.Size(663, 185);
            this.dataGridView1.TabIndex = 6;
            // 
            // Form1
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(687, 337);
            this.Controls.Add(this.dataGridView1);
            this.Controls.Add(this.button_create_book);
            this.Controls.Add(this.button_delete_book);
            this.Controls.Add(this.button_modify_price);
            this.Controls.Add(this.button_list_books_and_authors);
            this.Controls.Add(this.button_list_books);
            this.Controls.Add(this.listBox1);
            this.Name = "Form1";
            this.Text = "Form1";
            ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
            this.ResumeLayout(false);

        }

        #endregion

        private System.Windows.Forms.ListBox listBox1;
        private System.Windows.Forms.Button button_list_books;
        private System.Windows.Forms.Button button_list_books_and_authors;
        private System.Windows.Forms.Button button_modify_price;
        private System.Windows.Forms.Button button_delete_book;
        private System.Windows.Forms.Button button_create_book;
        private System.Windows.Forms.OpenFileDialog openFileDialog1;
        private System.Windows.Forms.DataGridView dataGridView1;

    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer ECT Industries
France France
I am software engineer and I work for the aviation.

I'm currently working on many different project and in many different languages
- Visual C++ 6
- C#
- ASP.NET
- C and assembly

Have lot of fun

Comments and Discussions