From c789de973ce3594b30bb18160c756abc6b2e8e54 Mon Sep 17 00:00:00 2001 From: Danil Malin Date: Thu, 27 Oct 2022 19:46:18 +0400 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B4=D0=B0=D0=BB=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20=D0=BD=D0=B5=D0=BD=D1=83=D0=B6=D0=BD=D1=8B=D1=85=20?= =?UTF-8?q?=D0=BA=D0=BE=D0=BC=D0=BC=D0=B5=D0=BD=D1=82=D0=B0=D1=80=D0=B8?= =?UTF-8?q?=D0=B5=D0=B2=20=D0=B8=20=D0=BA=D0=BE=D1=80=D1=80=D0=B5=D0=BA?= =?UTF-8?q?=D1=86=D0=B8=D1=8F=20=D0=BE=D0=B1=D1=8A=D0=B5=D0=BA=D1=82=D0=BE?= =?UTF-8?q?=D0=B2=20=D0=BD=D0=B0=20=D1=84=D0=BE=D1=80=D0=BC=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WarmlyLocomotive/FormLocomotiveConfig.Designer.cs | 8 -------- WarmlyLocomotive/WarmlyLocomotive/FormLocomotiveConfig.cs | 3 --- .../WarmlyLocomotive/FormMapWithSetLocomotives.cs | 1 - 3 files changed, 12 deletions(-) diff --git a/WarmlyLocomotive/WarmlyLocomotive/FormLocomotiveConfig.Designer.cs b/WarmlyLocomotive/WarmlyLocomotive/FormLocomotiveConfig.Designer.cs index f176feb..27ec187 100644 --- a/WarmlyLocomotive/WarmlyLocomotive/FormLocomotiveConfig.Designer.cs +++ b/WarmlyLocomotive/WarmlyLocomotive/FormLocomotiveConfig.Designer.cs @@ -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); diff --git a/WarmlyLocomotive/WarmlyLocomotive/FormLocomotiveConfig.cs b/WarmlyLocomotive/WarmlyLocomotive/FormLocomotiveConfig.cs index 823dad6..c4a693c 100644 --- a/WarmlyLocomotive/WarmlyLocomotive/FormLocomotiveConfig.cs +++ b/WarmlyLocomotive/WarmlyLocomotive/FormLocomotiveConfig.cs @@ -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 } /// /// Отрисовать локомотив @@ -133,7 +132,6 @@ namespace WarmlyLocomotive /// 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 /// 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))) diff --git a/WarmlyLocomotive/WarmlyLocomotive/FormMapWithSetLocomotives.cs b/WarmlyLocomotive/WarmlyLocomotive/FormMapWithSetLocomotives.cs index 727dfda..5b281bb 100644 --- a/WarmlyLocomotive/WarmlyLocomotive/FormMapWithSetLocomotives.cs +++ b/WarmlyLocomotive/WarmlyLocomotive/FormMapWithSetLocomotives.cs @@ -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(); }