Inheritance: System.Windows.Forms.UserControl
コード例 #1
0
 protected override void InitializeComponent()
 {
     base.InitializeComponent();
     this._deleteLocationButton = new System.Windows.Forms.Button();
     this._closeDialog = new System.Windows.Forms.Button();
     this._locationLabel = new System.Windows.Forms.Label();
     this._cityLabel = new System.Windows.Forms.Label();
     this._cityNameTextBox = new KBS2.Controls.BorderedTextBox();
     this._locationTextBox = new KBS2.Controls.BorderedTextBox();
     this._lblWarning = new System.Windows.Forms.Label();
     //
     // deleteLocationButton
     //
     this._deleteLocationButton.BackColor = System.Drawing.Color.DimGray;
     this._deleteLocationButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Gray;
     this._deleteLocationButton.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this._deleteLocationButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold);
     this._deleteLocationButton.ForeColor = System.Drawing.Color.White;
     this._deleteLocationButton.Location = new System.Drawing.Point(384, 158);
     this._deleteLocationButton.Margin = new System.Windows.Forms.Padding(5);
     this._deleteLocationButton.Name = "deleteLocationButton";
     this._deleteLocationButton.Size = new System.Drawing.Size(111, 37);
     this._deleteLocationButton.TabIndex = 3;
     this._deleteLocationButton.Text = "Verwijderen";
     this._deleteLocationButton.UseVisualStyleBackColor = false;
     this._deleteLocationButton.Click += new System.EventHandler(this.DeleteLocation_Click);
     //
     // closeDialog
     //
     this._closeDialog.BackColor = System.Drawing.Color.DimGray;
     this._closeDialog.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Gray;
     this._closeDialog.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this._closeDialog.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold);
     this._closeDialog.ForeColor = System.Drawing.Color.White;
     this._closeDialog.Location = new System.Drawing.Point(5, 158);
     this._closeDialog.Margin = new System.Windows.Forms.Padding(5);
     this._closeDialog.Name = "closeDialog";
     this._closeDialog.Size = new System.Drawing.Size(90, 37);
     this._closeDialog.TabIndex = 1;
     this._closeDialog.Text = "Sluiten";
     this._closeDialog.UseVisualStyleBackColor = false;
     this._closeDialog.Click += new System.EventHandler(this.CloseDialog_Click);
     //
     // locationLabel
     //
     this._locationLabel.AutoSize = true;
     this._locationLabel.BackColor = System.Drawing.Color.White;
     this._locationLabel.ForeColor = System.Drawing.Color.Black;
     this._locationLabel.Location = new System.Drawing.Point(121, 82);
     this._locationLabel.Name = "locationLabel";
     this._locationLabel.Size = new System.Drawing.Size(68, 13);
     this._locationLabel.TabIndex = 5;
     this._locationLabel.Text = "Locatienaam";
     //
     // cityLabel
     //
     this._cityLabel.AutoSize = true;
     this._cityLabel.BackColor = System.Drawing.Color.White;
     this._cityLabel.ForeColor = System.Drawing.Color.Black;
     this._cityLabel.Location = new System.Drawing.Point(121, 108);
     this._cityLabel.Name = "cityLabel";
     this._cityLabel.Size = new System.Drawing.Size(62, 13);
     this._cityLabel.TabIndex = 7;
     this._cityLabel.Text = "Plaatsnaam";
     //
     // cityNameTextBox
     //
     this._cityNameTextBox.BackColor = System.Drawing.Color.Black;
     this._cityNameTextBox.DefaultBorderColor = System.Drawing.Color.Black;
     this._cityNameTextBox.Enabled = false;
     this._cityNameTextBox.FocusedBorderColor = System.Drawing.Color.Blue;
     this._cityNameTextBox.Location = new System.Drawing.Point(189, 108);
     this._cityNameTextBox.Name = "cityNameTextBox";
     this._cityNameTextBox.Padding = new System.Windows.Forms.Padding(1);
     this._cityNameTextBox.Size = new System.Drawing.Size(166, 20);
     this._cityNameTextBox.TabIndex = 9;
     this._cityNameTextBox.Text = DocumentHandler.GetInstance().CurrentLocation.City;
     this._cityNameTextBox.Paint += new System.Windows.Forms.PaintEventHandler(this.TextBox_Paint);
     //
     // locationTextBox
     //
     this._locationTextBox.BackColor = System.Drawing.Color.Black;
     this._locationTextBox.DefaultBorderColor = System.Drawing.Color.Black;
     this._locationTextBox.Enabled = false;
     this._locationTextBox.FocusedBorderColor = System.Drawing.Color.Blue;
     this._locationTextBox.Location = new System.Drawing.Point(189, 82);
     this._locationTextBox.Name = "locationTextBox";
     this._locationTextBox.Padding = new System.Windows.Forms.Padding(1);
     this._locationTextBox.Size = new System.Drawing.Size(166, 20);
     this._locationTextBox.TabIndex = 10;
     this._locationTextBox.Text = DocumentHandler.GetInstance().CurrentLocation.Name;
     this._locationTextBox.Paint += new System.Windows.Forms.PaintEventHandler(this.TextBox_Paint);
     //
     // _lblWarning
     //
     this._lblWarning.AutoSize = true;
     this._lblWarning.BackColor = System.Drawing.Color.White;
     this._lblWarning.ForeColor = System.Drawing.Color.Black;
     this._lblWarning.Location = new System.Drawing.Point(180, 32);
     this._lblWarning.Name = "_lblWarning";
     this._lblWarning.Size = new System.Drawing.Size(175, 13);
     this._lblWarning.TabIndex = 11;
     this._lblWarning.Text = "Wilt u deze locatie verwijderen?";
     //
     // DeleteLocation
     //
     this._panel.Controls.Add(this._lblWarning);
     this._panel.Controls.Add(this._locationTextBox);
     this._panel.Controls.Add(this._cityNameTextBox);
     this._panel.Controls.Add(this._cityLabel);
     this._panel.Controls.Add(this._locationLabel);
     this._panel.Controls.Add(this._closeDialog);
     this._panel.Controls.Add(this._deleteLocationButton);
     this.build();
 }
コード例 #2
0
ファイル: DeleteFloorDialog.cs プロジェクト: Railec/SE1cKBS2
 protected override void InitializeComponent()
 {
     base.InitializeComponent();
     this._btnOptionYes = new System.Windows.Forms.Button();
     this._btnOptionNo = new System.Windows.Forms.Button();
     this._floorNameTextBox = new KBS2.Controls.BorderedTextBox();
     this._buildingTextBox = new KBS2.Controls.BorderedTextBox();
     this._lblWarning = new System.Windows.Forms.Label();
     this._floorLabel = new System.Windows.Forms.Label();
     this._buildingLabel = new System.Windows.Forms.Label();
     //
     // _btnOptionYes
     //
     this._btnOptionYes.BackColor = System.Drawing.Color.DimGray;
     this._btnOptionYes.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Gray;
     this._btnOptionYes.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this._btnOptionYes.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold);
     this._btnOptionYes.ForeColor = System.Drawing.Color.White;
     this._btnOptionYes.Location = new System.Drawing.Point(394, 158);
     this._btnOptionYes.Margin = new System.Windows.Forms.Padding(5);
     this._btnOptionYes.Name = "_btnOptionYes";
     this._btnOptionYes.Size = new System.Drawing.Size(100, 37);
     this._btnOptionYes.TabIndex = 3;
     this._btnOptionYes.Text = "Ja";
     this._btnOptionYes.UseVisualStyleBackColor = false;
     this._btnOptionYes.Click += new System.EventHandler(this.BtnOptionYes_Click);
     //
     // _btnOptionNo
     //
     this._btnOptionNo.BackColor = System.Drawing.Color.DimGray;
     this._btnOptionNo.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Gray;
     this._btnOptionNo.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this._btnOptionNo.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold);
     this._btnOptionNo.ForeColor = System.Drawing.Color.White;
     this._btnOptionNo.Location = new System.Drawing.Point(5, 158);
     this._btnOptionNo.Margin = new System.Windows.Forms.Padding(5);
     this._btnOptionNo.Name = "_btnOptionNo";
     this._btnOptionNo.Size = new System.Drawing.Size(100, 37);
     this._btnOptionNo.TabIndex = 2;
     this._btnOptionNo.Text = "Nee";
     this._btnOptionNo.UseVisualStyleBackColor = false;
     this._btnOptionNo.Click += new System.EventHandler(this.BtnOptionNo_Click);
     //
     // _floorNameTextBox
     //
     this._floorNameTextBox.BackColor = System.Drawing.Color.Black;
     this._floorNameTextBox.DefaultBorderColor = System.Drawing.Color.Black;
     this._floorNameTextBox.Enabled = false;
     this._floorNameTextBox.FocusedBorderColor = System.Drawing.Color.Blue;
     this._floorNameTextBox.Location = new System.Drawing.Point(176, 109);
     this._floorNameTextBox.Name = "_floorNameTextBox";
     this._floorNameTextBox.Padding = new System.Windows.Forms.Padding(1);
     this._floorNameTextBox.Size = new System.Drawing.Size(166, 20);
     this._floorNameTextBox.TabIndex = 9;
     this._floorNameTextBox.Text = DocumentHandler.GetInstance().CurrentFloor.GetName();
     this._floorNameTextBox.Paint += new System.Windows.Forms.PaintEventHandler(this.TextBox_Paint);
     //
     // _buildingTextBox
     //
     this._buildingTextBox.BackColor = System.Drawing.Color.Black;
     this._buildingTextBox.DefaultBorderColor = System.Drawing.Color.Black;
     this._buildingTextBox.Enabled = false;
     this._buildingTextBox.FocusedBorderColor = System.Drawing.Color.Blue;
     this._buildingTextBox.Location = new System.Drawing.Point(176, 83);
     this._buildingTextBox.Name = "_buildingTextBox";
     this._buildingTextBox.Padding = new System.Windows.Forms.Padding(1);
     this._buildingTextBox.Size = new System.Drawing.Size(166, 20);
     this._buildingTextBox.TabIndex = 10;
     this._buildingTextBox.Text = DocumentHandler.GetInstance().CurrentBuilding.Name;
     this._buildingTextBox.Paint += new System.Windows.Forms.PaintEventHandler(this.TextBox_Paint);
     //
     // _lblWarning
     //
     this._lblWarning.AutoSize = true;
     this._lblWarning.BackColor = System.Drawing.Color.White;
     this._lblWarning.ForeColor = System.Drawing.Color.Black;
     this._lblWarning.Location = new System.Drawing.Point(173, 40);
     this._lblWarning.Name = "_lblWarning";
     this._lblWarning.Size = new System.Drawing.Size(175, 13);
     this._lblWarning.TabIndex = 8;
     this._lblWarning.Text = "Wilt u deze verdieping verwijderen?";
     //
     // _floorLabel
     //
     this._floorLabel.AutoSize = true;
     this._floorLabel.BackColor = System.Drawing.Color.White;
     this._floorLabel.ForeColor = System.Drawing.Color.Black;
     this._floorLabel.Location = new System.Drawing.Point(113, 109);
     this._floorLabel.Name = "_floorLabel";
     this._floorLabel.Size = new System.Drawing.Size(57, 13);
     this._floorLabel.TabIndex = 0;
     this._floorLabel.Text = "Verdieping";
     //
     // _buildingLabel
     //
     this._buildingLabel.AutoSize = true;
     this._buildingLabel.BackColor = System.Drawing.Color.White;
     this._buildingLabel.ForeColor = System.Drawing.Color.Black;
     this._buildingLabel.Location = new System.Drawing.Point(123, 83);
     this._buildingLabel.Name = "_buildingLabel";
     this._buildingLabel.Size = new System.Drawing.Size(47, 13);
     this._buildingLabel.TabIndex = 0;
     this._buildingLabel.Text = "Gebouw";
     //
     // DeleteFloor
     //
     this._panel.Controls.Add(this._btnOptionYes);
     this._panel.Controls.Add(this._btnOptionNo);
     this._panel.Controls.Add(this._floorNameTextBox);
     this._panel.Controls.Add(this._buildingTextBox);
     this._panel.Controls.Add(this._lblWarning);
     this._panel.Controls.Add(this._floorLabel);
     this._panel.Controls.Add(this._buildingLabel);
     this.build();
 }
コード例 #3
0
ファイル: EditLocationDialog.cs プロジェクト: Railec/SE1cKBS2
 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();
 }
コード例 #4
0
ファイル: AddBuildingDialog.cs プロジェクト: Railec/SE1cKBS2
 protected override void InitializeComponent()
 {
     base.InitializeComponent();
     this._targetLocation = DocumentHandler.GetInstance().CurrentLocation;
     this.createBuilding = new System.Windows.Forms.Button();
     this.closeDialog = new System.Windows.Forms.Button();
     this.locationLabel = new System.Windows.Forms.Label();
     this.cityLabel = new System.Windows.Forms.Label();
     this.buildingInputLabel = new System.Windows.Forms.Label();
     this.cityNameTextBox = new KBS2.Controls.BorderedTextBox();
     this.locationTextBox = new KBS2.Controls.BorderedTextBox();
     this.buildingTextBox = new KBS2.Controls.BorderedTextBox();
     //
     // createBuilding
     //
     this.createBuilding.BackColor = System.Drawing.Color.DimGray;
     this.createBuilding.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Gray;
     this.createBuilding.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.createBuilding.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold);
     this.createBuilding.ForeColor = System.Drawing.Color.White;
     this.createBuilding.Location = new System.Drawing.Point(384, 158);
     this.createBuilding.Margin = new System.Windows.Forms.Padding(5);
     this.createBuilding.Name = "createBuilding";
     this.createBuilding.Size = new System.Drawing.Size(111, 37);
     this.createBuilding.TabIndex = 3;
     this.createBuilding.Text = "Toevoegen";
     this.createBuilding.UseVisualStyleBackColor = false;
     this.createBuilding.Click += new System.EventHandler(this.createBuilding_Click);
     //
     // closeDialog
     //
     this.closeDialog.BackColor = System.Drawing.Color.DimGray;
     this.closeDialog.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Gray;
     this.closeDialog.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.closeDialog.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold);
     this.closeDialog.ForeColor = System.Drawing.Color.White;
     this.closeDialog.Location = new System.Drawing.Point(5, 158);
     this.closeDialog.Margin = new System.Windows.Forms.Padding(5);
     this.closeDialog.Name = "closeDialog";
     this.closeDialog.Size = new System.Drawing.Size(90, 37);
     this.closeDialog.TabIndex = 1;
     this.closeDialog.Text = "Sluiten";
     this.closeDialog.UseVisualStyleBackColor = false;
     this.closeDialog.Click += new System.EventHandler(this.closeDialog_Click);
     //
     // locationLabel
     //
     this.locationLabel.AutoSize = true;
     this.locationLabel.BackColor = System.Drawing.Color.White;
     this.locationLabel.ForeColor = System.Drawing.Color.Black;
     this.locationLabel.Location = new System.Drawing.Point(140, 80);
     this.locationLabel.Name = "locationLabel";
     this.locationLabel.Size = new System.Drawing.Size(42, 13);
     this.locationLabel.TabIndex = 5;
     this.locationLabel.Text = "Locatie";
     //
     // cityLabel
     //
     this.cityLabel.AutoSize = true;
     this.cityLabel.BackColor = System.Drawing.Color.White;
     this.cityLabel.ForeColor = System.Drawing.Color.Black;
     this.cityLabel.Location = new System.Drawing.Point(121, 55);
     this.cityLabel.Name = "cityLabel";
     this.cityLabel.Size = new System.Drawing.Size(62, 13);
     this.cityLabel.TabIndex = 7;
     this.cityLabel.Text = "Plaatsnaam";
     //
     // buildingInputLabel
     //
     this.buildingInputLabel.AutoSize = true;
     this.buildingInputLabel.BackColor = System.Drawing.Color.White;
     this.buildingInputLabel.ForeColor = System.Drawing.Color.Black;
     this.buildingInputLabel.Location = new System.Drawing.Point(136, 107);
     this.buildingInputLabel.Name = "buildingInputLabel";
     this.buildingInputLabel.Size = new System.Drawing.Size(47, 13);
     this.buildingInputLabel.TabIndex = 8;
     this.buildingInputLabel.Text = "Gebouw";
     //
     // cityNameTextBox
     //
     this.cityNameTextBox.BackColor = System.Drawing.Color.Black;
     this.cityNameTextBox.DefaultBorderColor = System.Drawing.Color.Black;
     this.cityNameTextBox.Enabled = false;
     this.cityNameTextBox.FocusedBorderColor = System.Drawing.Color.Blue;
     this.cityNameTextBox.Location = new System.Drawing.Point(190, 51);
     this.cityNameTextBox.Name = "cityNameTextBox";
     this.cityNameTextBox.Padding = new System.Windows.Forms.Padding(1);
     this.cityNameTextBox.Size = new System.Drawing.Size(166, 20);
     this.cityNameTextBox.TabIndex = 9;
     this.cityNameTextBox.Text = _targetLocation.City;
     this.cityNameTextBox.Paint += new System.Windows.Forms.PaintEventHandler(this.TextBox_Paint);
     //
     // locationTextBox
     //
     this.locationTextBox.BackColor = System.Drawing.Color.Black;
     this.locationTextBox.DefaultBorderColor = System.Drawing.Color.Black;
     this.locationTextBox.Enabled = false;
     this.locationTextBox.FocusedBorderColor = System.Drawing.Color.Blue;
     this.locationTextBox.Location = new System.Drawing.Point(190, 77);
     this.locationTextBox.Name = "locationTextBox";
     this.locationTextBox.Padding = new System.Windows.Forms.Padding(1);
     this.locationTextBox.Size = new System.Drawing.Size(166, 20);
     this.locationTextBox.TabIndex = 10;
     this.locationTextBox.Text = _targetLocation.Name;
     this.locationTextBox.Paint += new System.Windows.Forms.PaintEventHandler(this.TextBox_Paint);
     //
     // buildingTextBox
     //
     this.buildingTextBox.BackColor = System.Drawing.Color.Black;
     this.buildingTextBox.DefaultBorderColor = System.Drawing.Color.Black;
     this.buildingTextBox.FocusedBorderColor = System.Drawing.Color.Blue;
     this.buildingTextBox.Location = new System.Drawing.Point(190, 104);
     this.buildingTextBox.Name = "buildingTextBox";
     this.buildingTextBox.Padding = new System.Windows.Forms.Padding(1);
     this.buildingTextBox.Size = new System.Drawing.Size(166, 20);
     this.buildingTextBox.TabIndex = 11;
     this.buildingTextBox.Paint += new System.Windows.Forms.PaintEventHandler(this.TextBox_Paint);
     //
     // AddBuilding
     //
     this._panel.Controls.Add(this.buildingTextBox);
     this._panel.Controls.Add(this.locationTextBox);
     this._panel.Controls.Add(this.cityNameTextBox);
     this._panel.Controls.Add(this.buildingInputLabel);
     this._panel.Controls.Add(this.cityLabel);
     this._panel.Controls.Add(this.locationLabel);
     this._panel.Controls.Add(this.closeDialog);
     this._panel.Controls.Add(this.createBuilding);
     this.build();
 }
コード例 #5
0
ファイル: AddFloorDialog.cs プロジェクト: Railec/SE1cKBS2
 /*
 In this class the controls of this dialog will be added to the panel so the button and such can be used correctly.
     */
 protected override void InitializeComponent()
 {
     base.InitializeComponent();
     this.buttonOk = new System.Windows.Forms.Button();
     this.buttonCancel = new System.Windows.Forms.Button();
     this.titleLabel = new System.Windows.Forms.Label();
     this.floorLabel = new System.Windows.Forms.Label();
     this.textBox = new KBS2.Controls.BorderedTextBox();
     this.SuspendLayout();
     //
     // buttonOk
     //
     this.buttonOk.BackColor = System.Drawing.Color.DimGray;
     this.buttonOk.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Gray;
     this.buttonOk.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.buttonOk.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold);
     this.buttonOk.ForeColor = System.Drawing.Color.White;
     this.buttonOk.Location = new System.Drawing.Point(393, 149);
     this.buttonOk.Margin = new System.Windows.Forms.Padding(5);
     this.buttonOk.Name = "buttonOk";
     this.buttonOk.Size = new System.Drawing.Size(90, 37);
     this.buttonOk.TabIndex = 40;
     this.buttonOk.Text = "Accepteer";
     this.buttonOk.UseVisualStyleBackColor = false;
     this.buttonOk.Click += new System.EventHandler(this.buttonOk_Click);
     //
     // buttonCancel
     //
     this.buttonCancel.BackColor = System.Drawing.Color.DimGray;
     this.buttonCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Gray;
     this.buttonCancel.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.buttonCancel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold);
     this.buttonCancel.ForeColor = System.Drawing.Color.White;
     this.buttonCancel.Location = new System.Drawing.Point(5, 149);
     this.buttonCancel.Margin = new System.Windows.Forms.Padding(5);
     this.buttonCancel.Name = "buttonCancel";
     this.buttonCancel.Size = new System.Drawing.Size(90, 37);
     this.buttonCancel.TabIndex = 1;
     this.buttonCancel.Text = "Sluiten";
     this.buttonCancel.UseVisualStyleBackColor = false;
     this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click);
     //
     // titleLabel
     //
     this.titleLabel.AutoSize = true;
     this.titleLabel.Location = new System.Drawing.Point(145, 12);
     this.titleLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
     this.titleLabel.Name = "titleLabel";
     this.titleLabel.Size = new System.Drawing.Size(198, 13);
     this.titleLabel.TabIndex = 2;
     this.titleLabel.Text = "Voeg hier de naam van de verdieping in.";
     //
     // floorLabel
     //
     this.floorLabel.AutoSize = true;
     this.floorLabel.Location = new System.Drawing.Point(129, 94);
     this.floorLabel.Name = "floorLabel";
     this.floorLabel.Size = new System.Drawing.Size(93, 13);
     this.floorLabel.TabIndex = 41;
     this.floorLabel.Text = "Naam verdieping: ";
     //
     // textBox
     //
     this.textBox.BackColor = System.Drawing.SystemColors.ControlDark;
     this.textBox.DefaultBorderColor = System.Drawing.SystemColors.ControlDark;
     this.textBox.FocusedBorderColor = System.Drawing.Color.Red;
     this.textBox.Location = new System.Drawing.Point(227, 94);
     this.textBox.Margin = new System.Windows.Forms.Padding(2);
     this.textBox.Name = "textBox";
     this.textBox.Padding = new System.Windows.Forms.Padding(1);
     this.textBox.Size = new System.Drawing.Size(131, 20);
     this.textBox.TabIndex = 3;
     this.textBox.Paint += new System.Windows.Forms.PaintEventHandler(this.TextBox_Paint);
     //
     // AddFloor
     //
     this._panel.Controls.Add(this.titleLabel);
     this._panel.Controls.Add(this.textBox);
     this._panel.Controls.Add(this.floorLabel);
     this._panel.Controls.Add(this.buttonOk);
     this._panel.Controls.Add(this.buttonCancel);
     this.build();
 }
コード例 #6
0
ファイル: AddLocationDialog.cs プロジェクト: Railec/SE1cKBS2
 protected override void InitializeComponent()
 {
     base.InitializeComponent();
     this.createLocation = new System.Windows.Forms.Button();
     this.closeDialog = new System.Windows.Forms.Button();
     this.locationLabel = new System.Windows.Forms.Label();
     this.cityLabel = new System.Windows.Forms.Label();
     this.locationInputLabel = new System.Windows.Forms.Label();
     this.cityNameTextBox = new KBS2.Controls.BorderedTextBox();
     this.locationTextBox = new KBS2.Controls.BorderedTextBox();
     //
     // createLocation
     //
     this.createLocation.BackColor = System.Drawing.Color.DimGray;
     this.createLocation.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Gray;
     this.createLocation.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.createLocation.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold);
     this.createLocation.ForeColor = System.Drawing.Color.White;
     this.createLocation.Location = new System.Drawing.Point(384, 158);
     this.createLocation.Margin = new System.Windows.Forms.Padding(5);
     this.createLocation.Name = "createLocation";
     this.createLocation.Size = new System.Drawing.Size(111, 37);
     this.createLocation.TabIndex = 3;
     this.createLocation.Text = "Toevoegen";
     this.createLocation.UseVisualStyleBackColor = false;
     this.createLocation.Click += new System.EventHandler(this.CreateLocation_Click);
     //
     // closeDialog
     //
     this.closeDialog.BackColor = System.Drawing.Color.DimGray;
     this.closeDialog.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Gray;
     this.closeDialog.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.closeDialog.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold);
     this.closeDialog.ForeColor = System.Drawing.Color.White;
     this.closeDialog.Location = new System.Drawing.Point(5, 158);
     this.closeDialog.Margin = new System.Windows.Forms.Padding(5);
     this.closeDialog.Name = "closeDialog";
     this.closeDialog.Size = new System.Drawing.Size(90, 37);
     this.closeDialog.TabIndex = 1;
     this.closeDialog.Text = "Sluiten";
     this.closeDialog.UseVisualStyleBackColor = false;
     this.closeDialog.Click += new System.EventHandler(this.CloseDialog_Click);
     //
     // locationLabel
     //
     this.locationLabel.AutoSize = true;
     this.locationLabel.BackColor = System.Drawing.Color.White;
     this.locationLabel.ForeColor = System.Drawing.Color.Black;
     this.locationLabel.Location = new System.Drawing.Point(121, 55);
     this.locationLabel.Name = "locationLabel";
     this.locationLabel.Size = new System.Drawing.Size(68, 13);
     this.locationLabel.TabIndex = 5;
     this.locationLabel.Text = "Locatienaam";
     //
     // cityLabel
     //
     this.cityLabel.AutoSize = true;
     this.cityLabel.BackColor = System.Drawing.Color.White;
     this.cityLabel.ForeColor = System.Drawing.Color.Black;
     this.cityLabel.Location = new System.Drawing.Point(127, 84);
     this.cityLabel.Name = "cityLabel";
     this.cityLabel.Size = new System.Drawing.Size(62, 13);
     this.cityLabel.TabIndex = 7;
     this.cityLabel.Text = "Plaatsnaam";
     //
     // locationInputLabel
     //
     this.locationInputLabel.Location = new System.Drawing.Point(0, 0);
     this.locationInputLabel.Name = "locationInputLabel";
     this.locationInputLabel.Size = new System.Drawing.Size(100, 23);
     this.locationInputLabel.TabIndex = 12;
     //
     // cityNameTextBox
     //
     this.cityNameTextBox.BackColor = System.Drawing.Color.Black;
     this.cityNameTextBox.DefaultBorderColor = System.Drawing.Color.Black;
     this.cityNameTextBox.Enabled = true;
     this.cityNameTextBox.FocusedBorderColor = System.Drawing.Color.Blue;
     this.cityNameTextBox.Location = new System.Drawing.Point(189, 77);
     this.cityNameTextBox.Name = "cityNameTextBox";
     this.cityNameTextBox.Padding = new System.Windows.Forms.Padding(1);
     this.cityNameTextBox.Size = new System.Drawing.Size(166, 20);
     this.cityNameTextBox.TabIndex = 9;
     this.cityNameTextBox.Paint += new System.Windows.Forms.PaintEventHandler(this.TextBox_Paint);
     //
     // locationTextBox
     //
     this.locationTextBox.BackColor = System.Drawing.Color.Black;
     this.locationTextBox.DefaultBorderColor = System.Drawing.Color.Black;
     this.locationTextBox.Enabled = true;
     this.locationTextBox.FocusedBorderColor = System.Drawing.Color.Blue;
     this.locationTextBox.Location = new System.Drawing.Point(189, 48);
     this.locationTextBox.Name = "locationTextBox";
     this.locationTextBox.Padding = new System.Windows.Forms.Padding(1);
     this.locationTextBox.Size = new System.Drawing.Size(166, 20);
     this.locationTextBox.TabIndex = 10;
     this.locationTextBox.Paint += new System.Windows.Forms.PaintEventHandler(this.TextBox_Paint);
     //
     // AddLocation
     //
     this._panel.Controls.Add(this.locationTextBox);
     this._panel.Controls.Add(this.cityNameTextBox);
     this._panel.Controls.Add(this.locationInputLabel);
     this._panel.Controls.Add(this.cityLabel);
     this._panel.Controls.Add(this.locationLabel);
     this._panel.Controls.Add(this.closeDialog);
     this._panel.Controls.Add(this.createLocation);
     this.build();
 }