laba5 Кувшинов Тимур ПИбд-21 простая #8

Closed
TImourka wants to merge 7 commits from laba5 into laba4
3 changed files with 2 additions and 17 deletions
Showing only changes of commit 05acd6e9a2 - Show all commits

View File

@ -20,7 +20,7 @@ namespace Laba1Loco
/// <summary>
/// Событие
/// </summary>
private event TrainDelegate EventAddTrain;
private event Action<DrawingTrain> EventAddTrain;
/// <summary>
/// Конструктор
/// </summary>
@ -48,7 +48,7 @@ namespace Laba1Loco
/// Добавление события
/// </summary>
/// <param name="ev">Привязанный метод</param>
internal void AddEvent(TrainDelegate ev)
internal void AddEvent(Action<DrawingTrain> ev)
{
if (EventAddTrain == null)
{

View File

@ -59,7 +59,6 @@
<Compile Include="FormTrainConfig.Designer.cs">
<DependentUpon>FormTrainConfig.cs</DependentUpon>
</Compile>
<Compile Include="TrainDelegate.cs" />
<Compile Include="TrainsGenericCollection.cs" />
<Compile Include="Direction.cs" />
<Compile Include="DrawingLoco.cs" />

View File

@ -1,14 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Laba1Loco
{
/// <summary>
/// Делегат для передачи объекта-автомобиля
/// </summary>
/// <param name="car"></param>
internal delegate void TrainDelegate(DrawingTrain car);
}