KBS2.Controls.EditLocationDialog.InitializeComponent C# (CSharp) Method

InitializeComponent() protected method

protected InitializeComponent ( ) : void
return void
        protected override void InitializeComponent()
        {
            base.InitializeComponent();
            this._targetLocation = DocumentHandler.GetInstance().CurrentLocation;
            this.newLocationNameLabel = new System.Windows.Forms.Label();
            this.acceptButton = new System.Windows.Forms.Button();
            this.cancelButton = new System.Windows.Forms.Button();
            this.infoLabel = new System.Windows.Forms.Label();
            this.newLocationNameTextbox = new KBS2.Controls.BorderedTextBox();
            this.newCityNameTextBox = new KBS2.Controls.BorderedTextBox();
            this.newCityNameLabel = new System.Windows.Forms.Label();
            //
            // newLocationNameLabel
            //
            this.newLocationNameLabel.AutoSize = true;
            this.newLocationNameLabel.Location = new System.Drawing.Point(77, 66);
            this.newLocationNameLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
            this.newLocationNameLabel.Name = "newLocationNameLabel";
            this.newLocationNameLabel.Size = new System.Drawing.Size(100, 13);
            this.newLocationNameLabel.TabIndex = 0;
            this.newLocationNameLabel.Text = "Nieuwe locatienaam:";
            //
            // acceptButton
            //
            this.acceptButton.BackColor = System.Drawing.Color.DimGray;
            this.acceptButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Gray;
            this.acceptButton.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.acceptButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold);
            this.acceptButton.ForeColor = System.Drawing.Color.White;
            this.acceptButton.Location = new System.Drawing.Point(373, 148);
            this.acceptButton.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6);
            this.acceptButton.Name = "acceptButton";
            this.acceptButton.Size = new System.Drawing.Size(120, 46);
            this.acceptButton.TabIndex = 4;
            this.acceptButton.Text = "Accepteer";
            this.acceptButton.UseVisualStyleBackColor = false;
            this.acceptButton.Click += new System.EventHandler(this.AcceptButton_Click);
            //
            // cancelButton
            //
            this.cancelButton.BackColor = System.Drawing.Color.DimGray;
            this.cancelButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Gray;
            this.cancelButton.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.cancelButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold);
            this.cancelButton.ForeColor = System.Drawing.Color.White;
            this.cancelButton.Location = new System.Drawing.Point(7, 148);
            this.cancelButton.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6);
            this.cancelButton.Name = "cancelButton";
            this.cancelButton.Size = new System.Drawing.Size(120, 46);
            this.cancelButton.TabIndex = 5;
            this.cancelButton.Text = "Cancel";
            this.cancelButton.UseVisualStyleBackColor = false;
            this.cancelButton.Click += new System.EventHandler(this.CancelButton_Click);
            //
            // infoLabel
            //
            this.infoLabel.AutoSize = true;
            this.infoLabel.Location = new System.Drawing.Point(77, 44);
            this.infoLabel.Name = "infoLabel";
            this.infoLabel.Size = new System.Drawing.Size(0, 13);
            this.infoLabel.TabIndex = 7;
            //
            // newLocationNameTextbox
            //
            this.newLocationNameTextbox.BackColor = System.Drawing.SystemColors.ControlDark;
            this.newLocationNameTextbox.DefaultBorderColor = System.Drawing.SystemColors.ControlDark;
            this.newLocationNameTextbox.FocusedBorderColor = System.Drawing.Color.Red;
            this.newLocationNameTextbox.Location = new System.Drawing.Point(195, 59);
            this.newLocationNameTextbox.Name = "newLocationNameTextbox";
            this.newLocationNameTextbox.Padding = new System.Windows.Forms.Padding(1);
            this.newLocationNameTextbox.Size = new System.Drawing.Size(157, 20);
            this.newLocationNameTextbox.TabIndex = 6;
            this.newLocationNameTextbox.Text = this._targetLocation.Name;
            this.newLocationNameTextbox.Paint += new System.Windows.Forms.PaintEventHandler(this.Textbox_Paint);
            //
            // newCityNameTextBox
            //
            this.newCityNameTextBox.BackColor = System.Drawing.SystemColors.ControlDark;
            this.newCityNameTextBox.DefaultBorderColor = System.Drawing.SystemColors.ControlDark;
            this.newCityNameTextBox.FocusedBorderColor = System.Drawing.Color.Red;
            this.newCityNameTextBox.Location = new System.Drawing.Point(195, 94);
            this.newCityNameTextBox.Name = "newCityNameTextBox";
            this.newCityNameTextBox.Padding = new System.Windows.Forms.Padding(1);
            this.newCityNameTextBox.Size = new System.Drawing.Size(157, 20);
            this.newCityNameTextBox.TabIndex = 6;
            this.newCityNameTextBox.Text = this._targetLocation.City;
            this.newCityNameTextBox.Paint += new System.Windows.Forms.PaintEventHandler(this.Textbox_Paint);
            //
            // newCityNameLabel
            //
            this.newCityNameLabel.AutoSize = true;
            this.newCityNameLabel.Location = new System.Drawing.Point(77, 101);
            this.newCityNameLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
            this.newCityNameLabel.Name = "newCityNameLabel";
            this.newCityNameLabel.Size = new System.Drawing.Size(100, 13);
            this.newCityNameLabel.TabIndex = 9;
            this.newCityNameLabel.Text = "Nieuwe plaatsnaam:";
            //
            // EditLocation
            //
            this._panel.Controls.Add(this.newCityNameLabel);
            this._panel.Controls.Add(this.newCityNameTextBox);
            this._panel.Controls.Add(this.infoLabel);
            this._panel.Controls.Add(this.newLocationNameTextbox);
            this._panel.Controls.Add(this.cancelButton);
            this._panel.Controls.Add(this.acceptButton);
            this._panel.Controls.Add(this.newLocationNameLabel);
            this.build();
        }