protected override void InitializeComponent() { base.InitializeComponent(); this._documentHandler = DocumentHandler.GetInstance(); this._itemHandler = ItemHandler.GetInstance(); this._itemTypeHandler = ItemTypeHandler.GetInstance(); this._itemTypeList = new List<ItemType>(); this._itemList = new List<Item>(); this._itemTypeList = this._itemTypeHandler.GetItemTypesBy((itemType) => true); this._itemList = this._itemHandler.GetItemsBy((item) => item.RoomID == this._documentHandler.CurrentRoom.GetID() && item.Type.Description == this._itemType.Description); this._editItemCancel = new System.Windows.Forms.Button(); this._editItemAccept = new System.Windows.Forms.Button(); this._objectTypeLabel = new System.Windows.Forms.Label(); this._amountOfItemsLabel = new System.Windows.Forms.Label(); this._amountOfItemsBorderedTextBox = new KBS2.Controls.BorderedTextBox(); this._newObjectTypeComboBox = new ComboBox(); this._currentItemLabel = new Label(); // // _currentItemLabel // this._currentItemLabel.AutoSize = true; this._currentItemLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold); this._currentItemLabel.Location = new System.Drawing.Point(150, 49); this._currentItemLabel.Name = "_objectTypeLabel"; this._currentItemLabel.Size = new System.Drawing.Size(200, 13); this._currentItemLabel.TabIndex = 21; this._currentItemLabel.Text = "Huidige objecttype: " + this._itemType.Description; // // _editItemCancel // this._editItemCancel.BackColor = System.Drawing.Color.DimGray; this._editItemCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Gray; this._editItemCancel.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this._editItemCancel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold); this._editItemCancel.ForeColor = System.Drawing.Color.White; this._editItemCancel.Location = new System.Drawing.Point(7, 148); this._editItemCancel.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6); this._editItemCancel.Name = "_editItemCancel"; this._editItemCancel.Size = new System.Drawing.Size(120, 46); this._editItemCancel.TabIndex = 11; this._editItemCancel.Text = "Sluiten"; this._editItemCancel.UseVisualStyleBackColor = false; this._editItemCancel.Click += new EventHandler(this.EditItemCancel_Click); // // _editItemAccept // this._editItemAccept.BackColor = System.Drawing.Color.DimGray; this._editItemAccept.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Gray; this._editItemAccept.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this._editItemAccept.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold); this._editItemAccept.ForeColor = System.Drawing.Color.White; this._editItemAccept.Location = new System.Drawing.Point(364, 148); this._editItemAccept.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6); this._editItemAccept.Name = "_editItemAccept"; this._editItemAccept.Size = new System.Drawing.Size(129, 46); this._editItemAccept.TabIndex = 13; this._editItemAccept.Text = "Wijzigen"; this._editItemAccept.UseVisualStyleBackColor = false; this._editItemAccept.Click += new EventHandler(this.EditItemAccept_Click); // // _objectTypeLabel // this._objectTypeLabel.AutoSize = true; this._objectTypeLabel.Location = new System.Drawing.Point(137, 84); this._objectTypeLabel.Name = "_objectTypeLabel"; this._objectTypeLabel.Size = new System.Drawing.Size(200, 13); this._objectTypeLabel.TabIndex = 21; this._objectTypeLabel.Text = "Kies een nieuw objecctype:"; // // _amountOfItemsLabel // this._amountOfItemsLabel.AutoSize = true; this._amountOfItemsLabel.Location = new System.Drawing.Point(108, 100); this._amountOfItemsLabel.Name = "_amountOfItemsLabel"; this._amountOfItemsLabel.Size = new System.Drawing.Size(78, 13); this._amountOfItemsLabel.TabIndex = 23; this._amountOfItemsLabel.Text = "Vul de hoeveelheid objecten in" + Environment.NewLine + "die u naar dit type wil veranderen:"; // // _amountOfItemsBorderedTextBox // this._amountOfItemsBorderedTextBox.BackColor = System.Drawing.SystemColors.ControlDark; this._amountOfItemsBorderedTextBox.DefaultBorderColor = System.Drawing.SystemColors.ControlDark; this._amountOfItemsBorderedTextBox.FocusedBorderColor = System.Drawing.Color.Red; this._amountOfItemsBorderedTextBox.Location = new System.Drawing.Point(275, 100); this._amountOfItemsBorderedTextBox.Name = "_amountOfItemsBorderedTextBox"; this._amountOfItemsBorderedTextBox.Padding = new System.Windows.Forms.Padding(1); this._amountOfItemsBorderedTextBox.Size = new System.Drawing.Size(100, 20); this._amountOfItemsBorderedTextBox.TabIndex = 24; // // _newObjectTypeTextBox // this._newObjectTypeComboBox.FormattingEnabled = true; this._newObjectTypeComboBox.Location = new System.Drawing.Point(275, 76); this._newObjectTypeComboBox.Name = "_newObjectTypeComboBox"; this._newObjectTypeComboBox.Size = new System.Drawing.Size(100, 21); this._newObjectTypeComboBox.TabIndex = 20; this._newObjectTypeComboBox.SelectedIndexChanged += new EventHandler(this.ObjectComboBx_SelectedIndexChanged); // // EditItem // this._panel.Controls.Add(this._currentItemLabel); this._panel.Controls.Add(this._editItemAccept); this._panel.Controls.Add(this._editItemCancel); this._panel.Controls.Add(this._amountOfItemsBorderedTextBox); this._panel.Controls.Add(this._amountOfItemsLabel); this._panel.Controls.Add(this._objectTypeLabel); this._panel.Controls.Add(this._newObjectTypeComboBox); this.FillNewObjectTypeComboBox(); this.build(); }
protected override void InitializeComponent() { base.InitializeComponent(); this._priceLabel = new Label(); this._brandLabel = new Label(); this._colorLabel = new Label(); this._sizeLabel = new Label(); this._typeNameLabel = new Label(); this._editTypeLabel = new Label(); this._widthBorderedTexBox = new BorderedTextBox(); this._lengthBorderedTexBox = new BorderedTextBox(); this._colorBorderedTexBox = new BorderedTextBox(); this._brandBorderedTexBox = new BorderedTextBox(); this._priceBorderedTexBox = new BorderedTextBox(); this._typeBorderedTexBox = new BorderedTextBox(); this._closeButton = new Button(); this._editButton = new Button(); this._deleteButton = new Button(); this.SuspendLayout(); // // _priceLabel // this._priceLabel.AutoSize = true; this._priceLabel.Location = new System.Drawing.Point(88, 98); this._priceLabel.Name = "_priceLabel"; this._priceLabel.Size = new System.Drawing.Size(35, 17); this._priceLabel.TabIndex = 0; this._priceLabel.Text = "Prijs"; // // _brandLabel // this._brandLabel.AutoSize = true; this._brandLabel.Location = new System.Drawing.Point(88, 126); this._brandLabel.Name = "_brandLabel"; this._brandLabel.Size = new System.Drawing.Size(39, 17); this._brandLabel.TabIndex = 1; this._brandLabel.Text = "Merk"; // // _colorLabel // this._colorLabel.AutoSize = true; this._colorLabel.Location = new System.Drawing.Point(88, 159); this._colorLabel.Name = "_colorLabel"; this._colorLabel.Size = new System.Drawing.Size(41, 17); this._colorLabel.TabIndex = 2; this._colorLabel.Text = "Kleur"; // // label4 // this._sizeLabel.AutoSize = true; this._sizeLabel.Location = new System.Drawing.Point(88, 187); this._sizeLabel.Name = "label4"; this._sizeLabel.Size = new System.Drawing.Size(144, 17); this._sizeLabel.TabIndex = 3; this._sizeLabel.Text = "Lengte x Breedte(cm)"; // // _typeNameLabel // this._typeNameLabel.AutoSize = true; this._typeNameLabel.Location = new System.Drawing.Point(248, 40); this._typeNameLabel.Name = "_typeNameLabel"; this._typeNameLabel.Size = new System.Drawing.Size(31, 20); this._typeNameLabel.TabIndex = 4; this._typeNameLabel.Text = _item.Description; // // _editTypeLabel // this._editTypeLabel.AutoSize = true; this._editTypeLabel.Location = new System.Drawing.Point(88, 70); this._editTypeLabel.Name = "_editTypeLabel"; this._editTypeLabel.Size = new System.Drawing.Size(136, 17); this._editTypeLabel.TabIndex = 6; this._editTypeLabel.Text = "Verander objecttype"; // // _widthBorderedTexBox // this._widthBorderedTexBox.BackColor = System.Drawing.SystemColors.ControlDark; this._widthBorderedTexBox.DefaultBorderColor = System.Drawing.SystemColors.ControlDark; this._widthBorderedTexBox.FocusedBorderColor = System.Drawing.Color.Red; this._widthBorderedTexBox.Location = new System.Drawing.Point(403, 182); this._widthBorderedTexBox.Name = "_widthBorderedTexBox"; this._widthBorderedTexBox.Padding = new System.Windows.Forms.Padding(1); this._widthBorderedTexBox.Size = new System.Drawing.Size(49, 22); this._widthBorderedTexBox.TabIndex = 16; this._widthBorderedTexBox.Text = _item.Width.ToString(); // // _lengthBorderedTexBox // this._lengthBorderedTexBox.BackColor = System.Drawing.SystemColors.ControlDark; this._lengthBorderedTexBox.DefaultBorderColor = System.Drawing.SystemColors.ControlDark; this._lengthBorderedTexBox.FocusedBorderColor = System.Drawing.Color.Red; this._lengthBorderedTexBox.Location = new System.Drawing.Point(331, 182); this._lengthBorderedTexBox.Name = "_lengthBorderedTexBox"; this._lengthBorderedTexBox.Padding = new System.Windows.Forms.Padding(1); this._lengthBorderedTexBox.Size = new System.Drawing.Size(51, 22); this._lengthBorderedTexBox.TabIndex = 15; this._lengthBorderedTexBox.Text = _item.Length.ToString(); // // _colorBorderedTexBox // this._colorBorderedTexBox.BackColor = System.Drawing.SystemColors.ControlDark; this._colorBorderedTexBox.DefaultBorderColor = System.Drawing.SystemColors.ControlDark; this._colorBorderedTexBox.FocusedBorderColor = System.Drawing.Color.Red; this._colorBorderedTexBox.Location = new System.Drawing.Point(331, 154); this._colorBorderedTexBox.Name = "_colorBorderedTexBox"; this._colorBorderedTexBox.Padding = new System.Windows.Forms.Padding(1); this._colorBorderedTexBox.Size = new System.Drawing.Size(121, 22); this._colorBorderedTexBox.TabIndex = 14; this._colorBorderedTexBox.Text = _item.Color; // // _brandBorderedTexBox // this._brandBorderedTexBox.BackColor = System.Drawing.SystemColors.ControlDark; this._brandBorderedTexBox.DefaultBorderColor = System.Drawing.SystemColors.ControlDark; this._brandBorderedTexBox.FocusedBorderColor = System.Drawing.Color.Red; this._brandBorderedTexBox.Location = new System.Drawing.Point(331, 126); this._brandBorderedTexBox.Name = "_brandBorderedTexBox"; this._brandBorderedTexBox.Padding = new System.Windows.Forms.Padding(1); this._brandBorderedTexBox.Size = new System.Drawing.Size(121, 22); this._brandBorderedTexBox.TabIndex = 13; this._brandBorderedTexBox.Text = _item.Brand; // // _priceBorderedTexBox // this._priceBorderedTexBox.BackColor = System.Drawing.SystemColors.ControlDark; this._priceBorderedTexBox.DefaultBorderColor = System.Drawing.SystemColors.ControlDark; this._priceBorderedTexBox.FocusedBorderColor = System.Drawing.Color.Red; this._priceBorderedTexBox.Location = new System.Drawing.Point(331, 99); this._priceBorderedTexBox.Name = "_priceBorderedTexBox"; this._priceBorderedTexBox.Padding = new System.Windows.Forms.Padding(1); this._priceBorderedTexBox.Size = new System.Drawing.Size(121, 22); this._priceBorderedTexBox.TabIndex = 12; this._priceBorderedTexBox.Text = _item.Price.ToString(); // // _typeBorderedTexBox // this._typeBorderedTexBox.BackColor = System.Drawing.SystemColors.ControlDark; this._typeBorderedTexBox.DefaultBorderColor = System.Drawing.SystemColors.ControlDark; this._typeBorderedTexBox.FocusedBorderColor = System.Drawing.Color.Red; this._typeBorderedTexBox.Location = new System.Drawing.Point(331, 67); this._typeBorderedTexBox.Name = "_typeBorderedTexBox"; this._typeBorderedTexBox.Padding = new System.Windows.Forms.Padding(1); this._typeBorderedTexBox.Size = new System.Drawing.Size(121, 22); this._typeBorderedTexBox.TabIndex = 11; this._typeBorderedTexBox.Text = _item.Description; // // _closeButton // this._closeButton.BackColor = System.Drawing.Color.DimGray; this._closeButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Gray; this._closeButton.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this._closeButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold); this._closeButton.ForeColor = System.Drawing.Color.White; this._closeButton.Location = new System.Drawing.Point(3, 220); this._closeButton.Name = "_closeButton"; this._closeButton.Size = new System.Drawing.Size(139, 47); this._closeButton.TabIndex = 18; this._closeButton.Text = "Sluiten"; this._closeButton.UseVisualStyleBackColor = false; this._closeButton.Click += new EventHandler(this.CloseButton_Click); // // _editButton // this._editButton.BackColor = System.Drawing.Color.DimGray; this._editButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Gray; this._editButton.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this._editButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold); this._editButton.ForeColor = System.Drawing.Color.White; this._editButton.Location = new System.Drawing.Point(180, 220); this._editButton.Name = "_editButton"; this._editButton.Size = new System.Drawing.Size(139, 47); this._editButton.TabIndex = 19; this._editButton.Text = "Wijzigen"; this._editButton.UseVisualStyleBackColor = false; this._editButton.Click += new EventHandler(this.Edititem_Click); // // delete_button // this._deleteButton.BackColor = System.Drawing.Color.DimGray; this._deleteButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Gray; this._deleteButton.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this._deleteButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold); this._deleteButton.ForeColor = System.Drawing.Color.White; this._deleteButton.Location = new System.Drawing.Point(356, 220); this._deleteButton.Name = "delete_button"; this._deleteButton.Size = new System.Drawing.Size(139, 47); this._deleteButton.TabIndex = 20; this._deleteButton.Text = "Verwijderen"; this._deleteButton.UseVisualStyleBackColor = false; this._deleteButton.Click += DeleteButton_Click; // // ShowDetailDialog // this._priceBorderedTexBox.Enabled = this._colorBorderedTexBox.Enabled = this._widthBorderedTexBox.Enabled = this._lengthBorderedTexBox.Enabled = this._typeBorderedTexBox.Enabled = this._brandBorderedTexBox.Enabled = false; this._panel.Controls.Add(this._deleteButton); this._panel.Controls.Add(this._editButton); this._panel.Controls.Add(this._closeButton); this._panel.Controls.Add(this._widthBorderedTexBox); this._panel.Controls.Add(this._lengthBorderedTexBox); this._panel.Controls.Add(this._colorBorderedTexBox); this._panel.Controls.Add(this._brandBorderedTexBox); this._panel.Controls.Add(this._priceBorderedTexBox); this._panel.Controls.Add(this._typeBorderedTexBox); this._panel.Controls.Add(this._editTypeLabel); this._panel.Controls.Add(this._typeNameLabel); this._panel.Controls.Add(this._colorLabel); this._panel.Controls.Add(this._brandLabel); this._panel.Controls.Add(this._priceLabel); this.build(); }
protected override void InitializeComponent() { base.InitializeComponent(); this._addItemCancel = new Button(); this._addItemAccept = new Button(); this._addImageBtn = new Button(); this._typeBorderedTextBox = new BorderedTextBox(); this._priceBorderedTextBox = new BorderedTextBox(); this._brandBorderedTextBox = new BorderedTextBox(); this._colorBorderedTextBox = new BorderedTextBox(); this._lengthBorderedTextBox = new BorderedTextBox(); this._widthBorderedTextBox = new BorderedTextBox(); this._addItemTypeLabel = new Label(); this._typeNameLabel = new Label(); this._priceLabel = new Label(); this._brandLabel = new Label(); this._colorLabel = new Label(); this._sizeLabel = new Label(); this._filepathBorderedTextBox = new BorderedTextBox(); // // _typeBorderedTextBox // this._typeBorderedTextBox.Location = new System.Drawing.Point(200, 59); this._typeBorderedTextBox.Name = "_priceBorderedTextBox"; this._typeBorderedTextBox.Size = new System.Drawing.Size(100, 22); this._typeBorderedTextBox.TabIndex = 4; // // _priceBorderedTextBox // this._priceBorderedTextBox.Location = new System.Drawing.Point(200, 87); this._priceBorderedTextBox.Name = "_priceBorderedTextBox"; this._priceBorderedTextBox.Size = new System.Drawing.Size(100, 22); this._priceBorderedTextBox.TabIndex = 4; // // _brandBorderedTextBox // this._brandBorderedTextBox.Location = new System.Drawing.Point(200, 115); this._brandBorderedTextBox.Name = "_brandBorderedTextBox"; this._brandBorderedTextBox.Size = new System.Drawing.Size(100, 22); this._brandBorderedTextBox.TabIndex = 5; // // colour_value // this._colorBorderedTextBox.Location = new System.Drawing.Point(200, 143); this._colorBorderedTextBox.Name = "_colorBorderedTextBox"; this._colorBorderedTextBox.Size = new System.Drawing.Size(100, 22); this._colorBorderedTextBox.TabIndex = 6; // // _lengthBorderedTextBox // this._lengthBorderedTextBox.Location = new System.Drawing.Point(200, 171); this._lengthBorderedTextBox.Name = "_lengthBorderedTextBox"; this._lengthBorderedTextBox.Size = new System.Drawing.Size(45, 22); this._lengthBorderedTextBox.TabIndex = 7; // // _widthBorderedTextBox // this._widthBorderedTextBox.Location = new System.Drawing.Point(250, 171); this._widthBorderedTextBox.Name = "_widthBorderedTextBox"; this._widthBorderedTextBox.Size = new System.Drawing.Size(45, 22); this._widthBorderedTextBox.TabIndex = 7; // // _addItemTypeLabel // this._addItemTypeLabel.AutoSize = true; this._addItemTypeLabel.Location = new System.Drawing.Point(168, 40); this._addItemTypeLabel.Name = "_addItemTypeLabel"; this._addItemTypeLabel.Size = new System.Drawing.Size(251, 17); this._addItemTypeLabel.TabIndex = 9; this._addItemTypeLabel.Text = "Vul hier het nieuwe objecttype in"; // // _priceLabel // this._typeNameLabel.AutoSize = true; this._typeNameLabel.Location = new System.Drawing.Point(164, 59); this._typeNameLabel.Name = "_typeNameLabel"; this._typeNameLabel.Size = new System.Drawing.Size(35, 17); this._typeNameLabel.TabIndex = 8; this._typeNameLabel.Text = "Naam:"; // // _priceLabel // this._priceLabel.AutoSize = true; this._priceLabel.Location = new System.Drawing.Point(164, 87); this._priceLabel.Name = "_priceLabel"; this._priceLabel.Size = new System.Drawing.Size(35, 17); this._priceLabel.TabIndex = 8; this._priceLabel.Text = "Prijs:"; // // _brandLabel // this._brandLabel.AutoSize = true; this._brandLabel.Location = new System.Drawing.Point(164, 115); this._brandLabel.Name = "_brandLabel"; this._brandLabel.Size = new System.Drawing.Size(39, 17); this._brandLabel.TabIndex = 9; this._brandLabel.Text = "Merk:"; // // colour_text // this._colorLabel.AutoSize = true; this._colorLabel.Location = new System.Drawing.Point(164, 143); this._colorLabel.Name = "_colorLabel"; this._colorLabel.Size = new System.Drawing.Size(41, 17); this._colorLabel.TabIndex = 10; this._colorLabel.Text = "Kleur:"; // // _sizeLabel // this._sizeLabel.AutoSize = true; this._sizeLabel.Location = new System.Drawing.Point(55, 176); this._sizeLabel.Name = "_sizeLabel"; this._sizeLabel.Size = new System.Drawing.Size(79, 17); this._sizeLabel.TabIndex = 11; this._sizeLabel.Text = "Afmetingen (lengte × breedte):"; // // Add Image Btn this._addImageBtn.BackColor = System.Drawing.Color.DimGray; this._addImageBtn.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Gray; this._addImageBtn.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this._addImageBtn.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold); this._addImageBtn.ForeColor = System.Drawing.Color.White; this._addImageBtn.Location = new System.Drawing.Point(320, 80); this._addImageBtn.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6); this._addImageBtn.Name = "_addImageBtn"; this._addImageBtn.Size = new System.Drawing.Size(150, 70); this._addImageBtn.TabIndex = 6; this._addImageBtn.Text = "Voeg afbeelding toe"; this._addImageBtn.UseVisualStyleBackColor = false; this._addImageBtn.Click += new System.EventHandler(this.AddImageBtnClick); // // // _addItemCancel // this._addItemCancel.BackColor = System.Drawing.Color.DimGray; this._addItemCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Gray; this._addItemCancel.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this._addItemCancel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold); this._addItemCancel.ForeColor = System.Drawing.Color.White; this._addItemCancel.Location = new System.Drawing.Point(7, 198); this._addItemCancel.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6); this._addItemCancel.Name = "_addItemCancel"; this._addItemCancel.Size = new System.Drawing.Size(120, 46); this._addItemCancel.TabIndex = 6; this._addItemCancel.Text = "Sluiten"; this._addItemCancel.UseVisualStyleBackColor = false; this._addItemCancel.Click += new System.EventHandler(this.AddItemCancel_Click); // // _addItemAccept // this._addItemAccept.BackColor = System.Drawing.Color.DimGray; this._addItemAccept.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Gray; this._addItemAccept.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this._addItemAccept.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold); this._addItemAccept.ForeColor = System.Drawing.Color.White; this._addItemAccept.Location = new System.Drawing.Point(345, 198); this._addItemAccept.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6); this._addItemAccept.Name = "_addItemAccept"; this._addItemAccept.Size = new System.Drawing.Size(148, 46); this._addItemAccept.TabIndex = 7; this._addItemAccept.Text = "Toevoegen"; this._addItemAccept.UseVisualStyleBackColor = false; this._addItemAccept.Click += new System.EventHandler(this.AddItemAccept_Click); // // _addItemTypeLabel // this._addItemTypeLabel.AutoSize = true; this._addItemTypeLabel.Location = new System.Drawing.Point(168, 40); this._addItemTypeLabel.Name = "_addItemTypeLabel"; this._addItemTypeLabel.Size = new System.Drawing.Size(251, 17); this._addItemTypeLabel.TabIndex = 9; this._addItemTypeLabel.Text = "Vul hier het nieuwe objecttype in"; // this._filepathBorderedTextBox.Location = new System.Drawing.Point(320, 160); this._filepathBorderedTextBox.Name = "txtStudentImage"; this._filepathBorderedTextBox.Size = new System.Drawing.Size(150, 20); this._filepathBorderedTextBox.TabIndex = 1; this._filepathBorderedTextBox.Enabled = false; this._filepathBorderedTextBox.Click += new System.EventHandler(this.AddImageBtnClick); this._filepathBorderedTextBox.Enter += new System.EventHandler(this.AddImageBtnClick); // // AddItemType // this._panel.Controls.Add(this._addImageBtn); this._panel.Controls.Add(this._typeBorderedTextBox); this._panel.Controls.Add(this._priceBorderedTextBox); this._panel.Controls.Add(this._brandBorderedTextBox); this._panel.Controls.Add(this._colorBorderedTextBox); this._panel.Controls.Add(this._lengthBorderedTextBox); this._panel.Controls.Add(this._widthBorderedTextBox); this._panel.Controls.Add(this._addItemTypeLabel); this._panel.Controls.Add(this._typeNameLabel); this._panel.Controls.Add(this._priceLabel); this._panel.Controls.Add(this._brandLabel); this._panel.Controls.Add(this._colorLabel); this._panel.Controls.Add(this._sizeLabel); this._panel.Controls.Add(this._addItemCancel); this._panel.Controls.Add(this._addItemAccept); this._panel.Controls.Add(this._filepathBorderedTextBox); this.build(); }