laba5 Кувшинов Тимур ПИбд-21 простая #8
@ -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)
|
||||
{
|
||||
|
@ -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" />
|
||||
|
@ -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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user