From dbace1908efe61f3ee5a3486e4c88c0f9222e067 Mon Sep 17 00:00:00 2001 From: ValAnn Date: Tue, 21 Nov 2023 09:19:08 +0400 Subject: [PATCH] done fix --- DumpTruck/DumpTruck/FormCarConfig.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DumpTruck/DumpTruck/FormCarConfig.cs b/DumpTruck/DumpTruck/FormCarConfig.cs index 7e1ca2a..cc21ecb 100644 --- a/DumpTruck/DumpTruck/FormCarConfig.cs +++ b/DumpTruck/DumpTruck/FormCarConfig.cs @@ -73,7 +73,7 @@ DragDropEffects.Move | DragDropEffects.Copy); if (_car is DrawningDumpTruck car) { labelAddColor.BackColor = (Color)e.Data.GetData(typeof(Color)); - car.setAddColor((Color)e.Data.GetData(typeof(Color))); + ((DrawningDumpTruck)_car).setAddColor((Color)e.Data.GetData(typeof(Color))); } DrawCar(); }