правки
This commit is contained in:
parent
fc76dcda45
commit
8c68d1496b
8
AntiAircraftGun/FormCarConfig.Designer.cs
generated
8
AntiAircraftGun/FormCarConfig.Designer.cs
generated
@ -98,6 +98,7 @@
|
||||
//
|
||||
// panelPurple
|
||||
//
|
||||
panelPurple.AllowDrop = true;
|
||||
panelPurple.BackColor = Color.Purple;
|
||||
panelPurple.Location = new Point(214, 79);
|
||||
panelPurple.Name = "panelPurple";
|
||||
@ -106,6 +107,7 @@
|
||||
//
|
||||
// panelBlack
|
||||
//
|
||||
panelBlack.AllowDrop = true;
|
||||
panelBlack.BackColor = Color.Black;
|
||||
panelBlack.Location = new Point(142, 79);
|
||||
panelBlack.Name = "panelBlack";
|
||||
@ -114,6 +116,7 @@
|
||||
//
|
||||
// panelGray
|
||||
//
|
||||
panelGray.AllowDrop = true;
|
||||
panelGray.BackColor = Color.Gray;
|
||||
panelGray.Location = new Point(70, 79);
|
||||
panelGray.Name = "panelGray";
|
||||
@ -122,6 +125,7 @@
|
||||
//
|
||||
// panelWhite
|
||||
//
|
||||
panelWhite.AllowDrop = true;
|
||||
panelWhite.BackColor = Color.White;
|
||||
panelWhite.Location = new Point(6, 79);
|
||||
panelWhite.Name = "panelWhite";
|
||||
@ -130,6 +134,7 @@
|
||||
//
|
||||
// panelYellow
|
||||
//
|
||||
panelYellow.AllowDrop = true;
|
||||
panelYellow.BackColor = Color.Yellow;
|
||||
panelYellow.Location = new Point(214, 22);
|
||||
panelYellow.Name = "panelYellow";
|
||||
@ -138,6 +143,7 @@
|
||||
//
|
||||
// panelBlue
|
||||
//
|
||||
panelBlue.AllowDrop = true;
|
||||
panelBlue.BackColor = Color.Blue;
|
||||
panelBlue.Location = new Point(142, 22);
|
||||
panelBlue.Name = "panelBlue";
|
||||
@ -146,6 +152,7 @@
|
||||
//
|
||||
// panelGreen
|
||||
//
|
||||
panelGreen.AllowDrop = true;
|
||||
panelGreen.BackColor = Color.Green;
|
||||
panelGreen.Location = new Point(70, 22);
|
||||
panelGreen.Name = "panelGreen";
|
||||
@ -154,6 +161,7 @@
|
||||
//
|
||||
// panelRed
|
||||
//
|
||||
panelRed.AllowDrop = true;
|
||||
panelRed.BackColor = Color.Red;
|
||||
panelRed.Location = new Point(6, 22);
|
||||
panelRed.Name = "panelRed";
|
||||
|
@ -26,10 +26,10 @@ public partial class FormCarConfig : Form
|
||||
panelGray.MouseDown += Panel_MouseDown;
|
||||
panelBlack.MouseDown += Panel_MouseDown;
|
||||
panelPurple.MouseDown += Panel_MouseDown;
|
||||
|
||||
|
||||
// TODO buttonCancel.Click привязать анонимный метод через lambda с закрытием формы
|
||||
buttonCancel.Click += (sender, e) => Close();
|
||||
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// Привязка внешнего метода к событию
|
||||
@ -100,8 +100,8 @@ public partial class FormCarConfig : Form
|
||||
// TODO отправка цвета в Drag&Drop
|
||||
(sender as Control)?.DoDragDrop((sender as Control)?.BackColor, DragDropEffects.Move | DragDropEffects.Copy);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// TODO Реализовать логику смены цветов: основного и дополнительного (для продвинутого объекта)
|
||||
private void labelBodyColor_DragEnter(object sender, DragEventArgs e)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user