PIbd-21. Danilov V.V. Lab work 05 #5

Closed
VoOneChek wants to merge 3 commits from LabWork05 into LabWork04
2 changed files with 2 additions and 17 deletions
Showing only changes of commit fac6bdd215 - Show all commits

View File

@ -21,7 +21,7 @@ namespace Project_DumpTruck
/// <summary>
/// Событие
/// </summary>
private event TruckDelegate? EventAddTruck;
private event Action<DrawningTruck> EventAddTruck;
/// <summary>
/// Конструктор
/// </summary>
@ -56,7 +56,7 @@ namespace Project_DumpTruck
/// Добавление события
/// </summary>
/// <param name="ev">Привязанный метод</param>
public void AddEvent(TruckDelegate ev)
public void AddEvent(Action<DrawningTruck> ev)
{
if (EventAddTruck == null)
{

View File

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