ПИбд-23 Валова А. Д. _Lab_5 #6
@ -77,10 +77,6 @@ namespace DumpTruck.Generics
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -154,8 +154,6 @@ width, int height, int carWidth, int carHeight)
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void setColor(Color color)
|
||||
{
|
||||
EntityCar.setColor(color);
|
||||
|
@ -81,18 +81,6 @@ DragDropEffects.Move | DragDropEffects.Copy);
|
||||
}
|
||||
}
|
||||
|
||||
private void LabelAddColor_DragDrop(object sender, DragEventArgs e)
|
||||
{
|
||||
|
||||
if (_car is DrawningDumpTruck car)
|
||||
{
|
||||
labelAddColor.BackColor = (Color)e.Data.GetData(typeof(Color));
|
||||
((DrawningDumpTruck)_car).setAddColor((Color)e.Data.GetData(typeof(Color)));
|
||||
}
|
||||
DrawCar();
|
||||
}
|
||||
|
||||
|
||||
private void LabelObject_MouseDown(object sender, MouseEventArgs e)
|
||||
{
|
||||
(sender as Label)?.DoDragDrop((sender as Label)?.Name,
|
||||
|
Loading…
x
Reference in New Issue
Block a user