All pastes #262690 Raw Edit

Stuff

public text v1 · immutable
#262690 ·published 2006-11-30 20:21 UTC
rendered paste body
   1.
      Program.cs
   2.
      ----------------------------
   3.
      using System;
   4.
       
   5.
      using System.Collections.Generic;
   6.
       
   7.
      using System.Windows.Forms;
   8.
       
   9.
       
  10.
       
  11.
      namespace YouTubeAPI
  12.
       
  13.
      {
  14.
       
  15.
           static class Program
  16.
       
  17.
           {
  18.
       
  19.
                /// <summary>
  20.
       
  21.
                /// The main entry point for the application.
  22.
       
  23.
                /// </summary>
  24.
       
  25.
                [STAThread]
  26.
       
  27.
                static void Main()
  28.
       
  29.
                {
  30.
       
  31.
                     Application.EnableVisualStyles();
  32.
       
  33.
                     Application.SetCompatibleTextRenderingDefault(false);
  34.
       
  35.
                     Application.Run(new Form1());
  36.
       
  37.
                }
  38.
       
  39.
           }
  40.
       
  41.
      }
  42.
       
  43.
       
  44.
      Form1.cs
  45.
      ----------------------------
  46.
      using System;
  47.
       
  48.
      using System.Collections.Generic;
  49.
       
  50.
      using System.ComponentModel;
  51.
       
  52.
      using System.Data;
  53.
       
  54.
      using System.Drawing;
  55.
       
  56.
      using System.Text;
  57.
       
  58.
      using System.IO;
  59.
       
  60.
      using System.Net;
  61.
       
  62.
      using System.Windows.Forms;
  63.
       
  64.
       
  65.
       
  66.
      using System.Xml;
  67.
       
  68.
       
  69.
       
  70.
      namespace YouTubeAPI
  71.
       
  72.
      {
  73.
       
  74.
           public partial class Form1 : Form
  75.
       
  76.
           {
  77.
       
  78.
                public Form1()
  79.
       
  80.
                {
  81.
       
  82.
                     InitializeComponent();
  83.
       
  84.
                }
  85.
       
  86.
       
  87.
       
  88.
                private void button1_Click(object sender, EventArgs e)
  89.
       
  90.
                {
  91.
       
  92.
       
  93.
                }
  94.
       
  95.
           }
  96.
       
  97.
      }
  98.
       
  99.
       
 100.
       
 101.
      Form1.Designer.cs
 102.
      -----------------------------
 103.
       
 104.
      namespace YouTubeAPI
 105.
       
 106.
      {
 107.
       
 108.
           partial class Form1
 109.
       
 110.
           {
 111.
       
 112.
                /// <summary>
 113.
       
 114.
                /// Required designer variable.
 115.
       
 116.
                /// </summary>
 117.
       
 118.
                private System.ComponentModel.IContainer components = null;
 119.
       
 120.
       
 121.
       
 122.
                /// <summary>
 123.
       
 124.
                /// Clean up any resources being used.
 125.
       
 126.
                /// </summary>
 127.
       
 128.
                /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
 129.
       
 130.
                protected override void Dispose(bool disposing)
 131.
       
 132.
                {
 133.
       
 134.
                     if (disposing && (components != null))
 135.
       
 136.
                     {
 137.
       
 138.
                          components.Dispose();
 139.
       
 140.
                     }
 141.
       
 142.
                     base.Dispose(disposing);
 143.
       
 144.
                }
 145.
       
 146.
       
 147.
       
 148.
                #region Windows Form Designer generated code
 149.
       
 150.
       
 151.
       
 152.
                /// <summary>
 153.
       
 154.
                /// Required method for Designer support - do not modify
 155.
       
 156.
                /// the contents of this method with the code editor.
 157.
       
 158.
                /// </summary>
 159.
       
 160.
                private void InitializeComponent()
 161.
       
 162.
                {
 163.
       
 164.
                     this.button1 = new System.Windows.Forms.Button();
 165.
       
 166.
                     this.dataGridView1 = new System.Windows.Forms.DataGridView();
 167.
       
 168.
                     ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
 169.
       
 170.
                     this.SuspendLayout();
 171.
       
 172.
                     //
 173.
       
 174.
                     // button1
 175.
       
 176.
                     //
 177.
       
 178.
                     this.button1.Location = new System.Drawing.Point(470, 375);
 179.
       
 180.
                     this.button1.Name = "button1";
 181.
       
 182.
                     this.button1.Size = new System.Drawing.Size(75, 23);
 183.
       
 184.
                     this.button1.TabIndex = 0;
 185.
       
 186.
                     this.button1.Text = "button1";
 187.
       
 188.
                     this.button1.UseVisualStyleBackColor = true;
 189.
       
 190.
                     this.button1.Click += new System.EventHandler(this.button1_Click);
 191.
       
 192.
                     //
 193.
       
 194.
                     // dataGridView1
 195.
       
 196.
                     //
 197.
       
 198.
                     this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
 199.
       
 200.
                     this.dataGridView1.Location = new System.Drawing.Point(12, 12);
 201.
       
 202.
                     this.dataGridView1.Name = "dataGridView1";
 203.
       
 204.
                     this.dataGridView1.Size = new System.Drawing.Size(541, 346);
 205.
       
 206.
                     this.dataGridView1.TabIndex = 1;
 207.
       
 208.
                     //
 209.
       
 210.
                     // Form1
 211.
       
 212.
                     //
 213.
       
 214.
                     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
 215.
       
 216.
                     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
 217.
       
 218.
                     this.ClientSize = new System.Drawing.Size(565, 410);
 219.
       
 220.
                     this.Controls.Add(this.dataGridView1);
 221.
       
 222.
                     this.Controls.Add(this.button1);
 223.
       
 224.
                     this.Name = "Form1";
 225.
       
 226.
                     this.Text = "Form1";
 227.
       
 228.
                     ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
 229.
       
 230.
                     this.ResumeLayout(false);
 231.
       
 232.
       
 233.
       
 234.
                }
 235.
       
 236.
       
 237.
       
 238.
                #endregion
 239.
       
 240.
       
 241.
       
 242.
                private System.Windows.Forms.Button button1;
 243.
       
 244.
                private System.Windows.Forms.DataGridView dataGridView1;
 245.
       
 246.
       
 247.
       
 248.
           }
 249.
       
 250.
      }