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