Лабораторная работа №5
This commit is contained in:
parent
69fbf47940
commit
874486dd20
@ -241,6 +241,8 @@
|
|||||||
labelModifiedObject.Text = "Продвинутый";
|
labelModifiedObject.Text = "Продвинутый";
|
||||||
labelModifiedObject.TextAlign = ContentAlignment.MiddleCenter;
|
labelModifiedObject.TextAlign = ContentAlignment.MiddleCenter;
|
||||||
labelModifiedObject.Click += buttonAdd_Click;
|
labelModifiedObject.Click += buttonAdd_Click;
|
||||||
|
labelModifiedObject.DragDrop += panelObject_DragDrop;
|
||||||
|
labelModifiedObject.DragEnter += panelObjects_DragEnter;
|
||||||
labelModifiedObject.MouseDown += labelObject_MouseDown;
|
labelModifiedObject.MouseDown += labelObject_MouseDown;
|
||||||
//
|
//
|
||||||
// labelSimpleObject
|
// labelSimpleObject
|
||||||
@ -265,6 +267,9 @@
|
|||||||
pictureBoxObject.Size = new Size(173, 95);
|
pictureBoxObject.Size = new Size(173, 95);
|
||||||
pictureBoxObject.TabIndex = 1;
|
pictureBoxObject.TabIndex = 1;
|
||||||
pictureBoxObject.TabStop = false;
|
pictureBoxObject.TabStop = false;
|
||||||
|
pictureBoxObject.DragDrop += panelObject_DragDrop;
|
||||||
|
pictureBoxObject.DragEnter += panelObjects_DragEnter;
|
||||||
|
pictureBoxObject.MouseDown += panel_MouseDown;
|
||||||
//
|
//
|
||||||
// buttonAdd
|
// buttonAdd
|
||||||
//
|
//
|
||||||
@ -287,6 +292,7 @@
|
|||||||
//
|
//
|
||||||
// panelObjects
|
// panelObjects
|
||||||
//
|
//
|
||||||
|
panelObjects.AllowDrop = true;
|
||||||
panelObjects.Controls.Add(labelAdditionalColor);
|
panelObjects.Controls.Add(labelAdditionalColor);
|
||||||
panelObjects.Controls.Add(labelBodyColor);
|
panelObjects.Controls.Add(labelBodyColor);
|
||||||
panelObjects.Controls.Add(pictureBoxObject);
|
panelObjects.Controls.Add(pictureBoxObject);
|
||||||
@ -296,6 +302,7 @@
|
|||||||
panelObjects.TabIndex = 4;
|
panelObjects.TabIndex = 4;
|
||||||
panelObjects.DragDrop += panelObject_DragDrop;
|
panelObjects.DragDrop += panelObject_DragDrop;
|
||||||
panelObjects.DragEnter += panelObjects_DragEnter;
|
panelObjects.DragEnter += panelObjects_DragEnter;
|
||||||
|
panelObjects.MouseDown += panel_MouseDown;
|
||||||
//
|
//
|
||||||
// labelAdditionalColor
|
// labelAdditionalColor
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user