Удаление ненужных комментариев и коррекция объектов на форме
This commit is contained in:
parent
498ce0d89b
commit
c789de973c
@ -121,7 +121,6 @@
|
|||||||
//
|
//
|
||||||
// panelPurple
|
// panelPurple
|
||||||
//
|
//
|
||||||
this.panelPurple.AllowDrop = true;
|
|
||||||
this.panelPurple.BackColor = System.Drawing.Color.Purple;
|
this.panelPurple.BackColor = System.Drawing.Color.Purple;
|
||||||
this.panelPurple.Location = new System.Drawing.Point(157, 68);
|
this.panelPurple.Location = new System.Drawing.Point(157, 68);
|
||||||
this.panelPurple.MaximumSize = new System.Drawing.Size(30, 30);
|
this.panelPurple.MaximumSize = new System.Drawing.Size(30, 30);
|
||||||
@ -131,7 +130,6 @@
|
|||||||
//
|
//
|
||||||
// panelBlack
|
// panelBlack
|
||||||
//
|
//
|
||||||
this.panelBlack.AllowDrop = true;
|
|
||||||
this.panelBlack.BackColor = System.Drawing.Color.Black;
|
this.panelBlack.BackColor = System.Drawing.Color.Black;
|
||||||
this.panelBlack.Location = new System.Drawing.Point(111, 68);
|
this.panelBlack.Location = new System.Drawing.Point(111, 68);
|
||||||
this.panelBlack.MaximumSize = new System.Drawing.Size(30, 30);
|
this.panelBlack.MaximumSize = new System.Drawing.Size(30, 30);
|
||||||
@ -141,7 +139,6 @@
|
|||||||
//
|
//
|
||||||
// panelGray
|
// panelGray
|
||||||
//
|
//
|
||||||
this.panelGray.AllowDrop = true;
|
|
||||||
this.panelGray.BackColor = System.Drawing.Color.Gray;
|
this.panelGray.BackColor = System.Drawing.Color.Gray;
|
||||||
this.panelGray.Location = new System.Drawing.Point(65, 68);
|
this.panelGray.Location = new System.Drawing.Point(65, 68);
|
||||||
this.panelGray.MaximumSize = new System.Drawing.Size(30, 30);
|
this.panelGray.MaximumSize = new System.Drawing.Size(30, 30);
|
||||||
@ -151,7 +148,6 @@
|
|||||||
//
|
//
|
||||||
// panelWhite
|
// panelWhite
|
||||||
//
|
//
|
||||||
this.panelWhite.AllowDrop = true;
|
|
||||||
this.panelWhite.BackColor = System.Drawing.Color.White;
|
this.panelWhite.BackColor = System.Drawing.Color.White;
|
||||||
this.panelWhite.Location = new System.Drawing.Point(19, 68);
|
this.panelWhite.Location = new System.Drawing.Point(19, 68);
|
||||||
this.panelWhite.MaximumSize = new System.Drawing.Size(30, 30);
|
this.panelWhite.MaximumSize = new System.Drawing.Size(30, 30);
|
||||||
@ -161,7 +157,6 @@
|
|||||||
//
|
//
|
||||||
// panelYellow
|
// panelYellow
|
||||||
//
|
//
|
||||||
this.panelYellow.AllowDrop = true;
|
|
||||||
this.panelYellow.BackColor = System.Drawing.Color.Yellow;
|
this.panelYellow.BackColor = System.Drawing.Color.Yellow;
|
||||||
this.panelYellow.Location = new System.Drawing.Point(157, 22);
|
this.panelYellow.Location = new System.Drawing.Point(157, 22);
|
||||||
this.panelYellow.MaximumSize = new System.Drawing.Size(30, 30);
|
this.panelYellow.MaximumSize = new System.Drawing.Size(30, 30);
|
||||||
@ -171,7 +166,6 @@
|
|||||||
//
|
//
|
||||||
// panelBlue
|
// panelBlue
|
||||||
//
|
//
|
||||||
this.panelBlue.AllowDrop = true;
|
|
||||||
this.panelBlue.BackColor = System.Drawing.Color.Blue;
|
this.panelBlue.BackColor = System.Drawing.Color.Blue;
|
||||||
this.panelBlue.Location = new System.Drawing.Point(111, 22);
|
this.panelBlue.Location = new System.Drawing.Point(111, 22);
|
||||||
this.panelBlue.MaximumSize = new System.Drawing.Size(30, 30);
|
this.panelBlue.MaximumSize = new System.Drawing.Size(30, 30);
|
||||||
@ -181,7 +175,6 @@
|
|||||||
//
|
//
|
||||||
// panelGreen
|
// panelGreen
|
||||||
//
|
//
|
||||||
this.panelGreen.AllowDrop = true;
|
|
||||||
this.panelGreen.BackColor = System.Drawing.Color.Green;
|
this.panelGreen.BackColor = System.Drawing.Color.Green;
|
||||||
this.panelGreen.Location = new System.Drawing.Point(65, 22);
|
this.panelGreen.Location = new System.Drawing.Point(65, 22);
|
||||||
this.panelGreen.MaximumSize = new System.Drawing.Size(30, 30);
|
this.panelGreen.MaximumSize = new System.Drawing.Size(30, 30);
|
||||||
@ -191,7 +184,6 @@
|
|||||||
//
|
//
|
||||||
// panelRed
|
// panelRed
|
||||||
//
|
//
|
||||||
this.panelRed.AllowDrop = true;
|
|
||||||
this.panelRed.BackColor = System.Drawing.Color.Red;
|
this.panelRed.BackColor = System.Drawing.Color.Red;
|
||||||
this.panelRed.Location = new System.Drawing.Point(19, 22);
|
this.panelRed.Location = new System.Drawing.Point(19, 22);
|
||||||
this.panelRed.MaximumSize = new System.Drawing.Size(30, 30);
|
this.panelRed.MaximumSize = new System.Drawing.Size(30, 30);
|
||||||
|
@ -29,7 +29,6 @@ namespace WarmlyLocomotive
|
|||||||
panelYellow.MouseDown += PanelColor_MouseDown;
|
panelYellow.MouseDown += PanelColor_MouseDown;
|
||||||
panelBlue.MouseDown += PanelColor_MouseDown;
|
panelBlue.MouseDown += PanelColor_MouseDown;
|
||||||
buttonCancel.Click += (object sender, EventArgs e) => Close();
|
buttonCancel.Click += (object sender, EventArgs e) => Close();
|
||||||
// TODO buttonCancel.Click with lambda
|
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Отрисовать локомотив
|
/// Отрисовать локомотив
|
||||||
@ -133,7 +132,6 @@ namespace WarmlyLocomotive
|
|||||||
/// <param name="e"></param>
|
/// <param name="e"></param>
|
||||||
private void LabelBaseColor_DragDrop(object sender, DragEventArgs e)
|
private void LabelBaseColor_DragDrop(object sender, DragEventArgs e)
|
||||||
{
|
{
|
||||||
// TODO Call method from object _car and set color
|
|
||||||
if(_locomotive != null)
|
if(_locomotive != null)
|
||||||
{
|
{
|
||||||
if (e.Data.GetDataPresent(typeof(Color))) {
|
if (e.Data.GetDataPresent(typeof(Color))) {
|
||||||
@ -165,7 +163,6 @@ namespace WarmlyLocomotive
|
|||||||
/// <param name="e"></param>
|
/// <param name="e"></param>
|
||||||
private void LabelDopColor_DragDrop(object sender, DragEventArgs e)
|
private void LabelDopColor_DragDrop(object sender, DragEventArgs e)
|
||||||
{
|
{
|
||||||
// TODO Call method from object _car if _car is DrawningSportCar and set dop color
|
|
||||||
if (_locomotive != null && _locomotive is DrawningWarmlyLocomotive warmlyLocomotive)
|
if (_locomotive != null && _locomotive is DrawningWarmlyLocomotive warmlyLocomotive)
|
||||||
{
|
{
|
||||||
if (e.Data.GetDataPresent(typeof(Color)))
|
if (e.Data.GetDataPresent(typeof(Color)))
|
||||||
|
@ -67,7 +67,6 @@ namespace WarmlyLocomotive
|
|||||||
private void ButtonAddLocomotive_Click(object sender, EventArgs e)
|
private void ButtonAddLocomotive_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
var formLocomotiveConfig = new FormLocomotiveConfig();
|
var formLocomotiveConfig = new FormLocomotiveConfig();
|
||||||
// TODO Call method AddEvent from formCarConfig
|
|
||||||
formLocomotiveConfig.AddEvent(AddLocomotive);
|
formLocomotiveConfig.AddEvent(AddLocomotive);
|
||||||
formLocomotiveConfig.Show();
|
formLocomotiveConfig.Show();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user