Exemplo n.º 1
0
 private void InitializeComponent()
 {
     this.checkBox1 = new CheckBox();
     this.checkBox2 = new CheckBox();
     this.checkBox3 = new CheckBox();
     this.label1    = new Label();
     this.comboBox1 = ComboBox();
     this.comboBox2 = ComboBox();
     this.comboBox3 = ComboBox();
     this.label2    = new Label();
     //
     // checkBox1
     //
     this.checkBox1.Location = new
                               System.Drawing.Point(40, 88);
     this.checkBox1.TabIndex        = 0;
     this.checkBox1.Text            = "Stereo";
     this.checkBox1.CheckedChanged += new
                                      System.EventHandler(this.checkBox1_CheckedChanged);
     //
     // checkBox2
     //
     this.checkBox2.Location = new
                               System.Drawing.Point(40, 136);
     this.checkBox2.TabIndex        = 1;
     this.checkBox2.Text            = "Power";
     this.checkBox2.CheckedChanged += new
                                      System.EventHandler(this.checkBox2_CheckedChanged);
     //
     // checkBox3
     //
     this.checkBox3.Location = new
                               System.Drawing.Point(40, 184);
     this.checkBox3.Size = new
                           System.Drawing.Size(104, 32);
     this.checkBox3.TabIndex        = 2;
     this.checkBox3.text            = "Roadside Asistance";
     this.checkBox3.CheckedChanged += new
                                      System.EventHandler(this.checkBox3_CheckedChanged);
     //
     // label1
     //
     this.label1.Location = new
                            System.Drawing.Point(32, 32);
     this.label1.Size     = new System.Drawing.Size(216, 23);
     this.label1.TabIndex = 3;
     this.label.Text      =
         "Select the new car options you want";
     //
     // comboBox1
     //
     this.comboBox1.DropDownWidth = 168;
     this.comboBox1.Items.AddRange(new object[] {
         "AM/FM radio",
         "Satellite radio",
         "10 CD player"
     });
     this.comboBox1.Location = new
                               System.Drawing.Point(152, 88);
     this.comboBox1.Size =
         new System.Drawing.Size(168, 21);
     this.comboBox1.TabIndex              = 4;
     this.comboBox1.Text                  = "Stereo options";
     this.comboBox1.Visible               = false;
     this.comboBox1.SelectedIndexChanged += new
                                            System.EventHandler(this.comboBox1_SelectedIndexChanged);
     //
     // comboBox2
     //
     this.comboBox2.DropDownWidth = 168;
     this.comboBox2.Items.AddRange(new object[] {
         "Power brakes",
         "Power brakes and steering",
         "Power brakes, steering, windows, antenna"
     });
     this.comboBox2.Location = new
                               System.Drawing.Point(152, 136);
     this.comboBox2.Name = "comboBox2";
     this.comboBox2.Size = new
                           System.Drawing.Size(168, 21);
     this.comboBox2.TabIndex              = 5;
     this.comboBox2.Text                  = "Power options";
     this.comboBox2.Visible               = false;
     this.comboBox2.SelectedIndexChanged +=
         new System.EventHandler(this.comboBox2_SelectedIndexChanged);
     //
     // comboBox3
     //
     this.comboBox3.DropDownWidth = 168;
     this.comboBox3.Items.AddRange(new object[] {
         "In-state"
         "Tri-state area"
         "Nationwide"
     })
Exemplo n.º 2
0
 private void InitializeComponent()
 {
     this.checkBox1 = new CheckBox();
      this.checkBox2 = new CheckBox();
      this.checkBox3 = new CheckBox();
      this.label1 = new Label();
      this.comboBox1 = ComboBox();
      this.comboBox2 = ComboBox();
      this.comboBox3 = ComboBox();
      this.label2 = new Label();
      //
      // checkBox1
      //
      this.checkBox1.Location = new
     System.Drawing.Point(40, 88);
      this.checkBox1.TabIndex = 0;
      this.checkBox1.Text = "Stereo";
      this.checkBox1.CheckedChanged += new
      System.EventHandler(this.checkBox1_CheckedChanged);
      //
      // checkBox2
      //
      this.checkBox2.Location = new
     System.Drawing.Point(40, 136);
      this.checkBox2.TabIndex = 1;
      this.checkBox2.Text = "Power";
      this.checkBox2.CheckedChanged += new
      System.EventHandler(this.checkBox2_CheckedChanged);
      //
      // checkBox3
      //
      this.checkBox3.Location = new
     System.Drawing.Point(40, 184);
      this.checkBox3.Size = new
     System.Drawing.Size(104, 32);
      this.checkBox3.TabIndex = 2;
      this.checkBox3.text = "Roadside Asistance";
      this.checkBox3.CheckedChanged += new
      System.EventHandler(this.checkBox3_CheckedChanged);
      //
      // label1
      //
      this.label1.Location = new
     System.Drawing.Point(32, 32);
      this.label1.Size = new System.Drawing.Size(216, 23);
      this.label1.TabIndex = 3;
      this.label.Text =
      "Select the new car options you want";
      //
      // comboBox1
      //
      this.comboBox1.DropDownWidth = 168;
      this.comboBox1.Items.AddRange(new object[] {
      "AM/FM radio",
      "Satellite radio",
      "10 CD player"});
      this.comboBox1.Location = new
     System.Drawing.Point(152, 88);
      this.comboBox1.Size =
     new System.Drawing.Size(168, 21);
      this.comboBox1.TabIndex = 4;
      this.comboBox1.Text = "Stereo options";
      this.comboBox1.Visible = false;
      this.comboBox1.SelectedIndexChanged += new
     System.EventHandler(this.comboBox1_SelectedIndexChanged);
      //
      // comboBox2
      //
      this.comboBox2.DropDownWidth = 168;
      this.comboBox2.Items.AddRange(new object[] {
       "Power brakes",
       "Power brakes and steering",
      "Power brakes, steering, windows, antenna"});
      this.comboBox2.Location = new
     System.Drawing.Point(152, 136);
      this.comboBox2.Name = "comboBox2";
      this.comboBox2.Size = new
       System.Drawing.Size(168, 21);
      this.comboBox2.TabIndex = 5;
      this.comboBox2.Text = "Power options";
      this.comboBox2.Visible = false;
      this.comboBox2.SelectedIndexChanged +=
       new System.EventHandler(this.comboBox2_SelectedIndexChanged);
      //
      // comboBox3
      //
      this.comboBox3.DropDownWidth = 168;
      this.comboBox3.Items.AddRange(new object[] {
     "In-state"
     "Tri-state area"
     "Nationwide"})
      this.comboBox3.Location =
     new System.Drawing.Point(152, 176);
      this.comboBox3.Size = new
     System.Drawing.Size(168, 21);
      this.comboBox3.TabIndex = 6;
      this.comboBox3.Text = "Roadside assistance options";
      this.comboBox3.Visible = false;
      this.comboBox3.SelectedIndexChanged += new
       System.EventHandler(this.comboBox3_SelectedIndexChanged);
      //
      // label2
      //
      this.label2.Location =
     new System.Drawing.Point(56, 232);
      this.label2.Size = new System.Drawing.Size(184, 40);
      this.label2.TabIndex = 7;
      this.label2.Text = "Option package =";
      //
      // Form1
      //
      this.AutoScaleBaseSize = new
     System.Drawing.Size(5, 13);
      this.ClientSize = new System.Drawing.Size(342, 323);
      this.Controls.AddRange
      (new System.Windows.Forms.Control[] {
     this.label2,
     this.comboBox3,
     this.comboBox2,
     this.comboBox1,
     this.label1,
     this.checkBox3,
     this.checkBox2,
     this.checkBox1});
      this.Text = "New Car Options";
 }