From 5f6fb7141133684236c2280c4818f4e754c203e2 Mon Sep 17 00:00:00 2001 From: Tonb73 Date: Mon, 15 Apr 2024 09:37:58 +0300 Subject: [PATCH] =?UTF-8?q?=D0=92=D0=BE=D0=BE=D0=B1=D1=89=D0=B5=20=D0=B2?= =?UTF-8?q?=D1=81=D0=B5=20=D0=B3=D0=BE=D1=82=D0=BE=D0=B2=D0=BE!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../FormElectricLocomotiveConfig.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ProjectElectricLocomotive/FormElectricLocomotiveConfig.cs b/ProjectElectricLocomotive/FormElectricLocomotiveConfig.cs index 280746f..517c0ef 100644 --- a/ProjectElectricLocomotive/FormElectricLocomotiveConfig.cs +++ b/ProjectElectricLocomotive/FormElectricLocomotiveConfig.cs @@ -63,6 +63,17 @@ public partial class FormElectricLocomotiveConfig : Form } } + public event Func MyEvent; + + public void OnMyEvent(Func obj) + { + MyEvent += obj; + } + static void Handle(object obj) + { + + } + /// /// Прорисовка объекта