jaga jaga 3.0

This commit is contained in:
gg12 darfren 2023-11-10 08:57:13 +04:00
parent 4a50160d51
commit b430508482
3 changed files with 3 additions and 20 deletions

View File

@ -61,7 +61,7 @@ namespace Monorail
}
FormMonorailConfig form = new();
form.Show();
MonorailDelegate? monorailDelegate = new((m) => {
Action<DrawningMonorail>? monorailDelegate = new((m) => {
bool q = (obj + m);
if (q)
{

View File

@ -15,14 +15,9 @@ namespace Monorail
{
DrawningMonorail? _monorail = null;
private event MonorailDelegate? EventAddMonorail;
private event Action<DrawningMonorail>? EventAddMonorail;
DrawningMonorail SelectedMonorail(DrawningMonorail monorail)
{
return _monorail;
}
public void AddEvent(MonorailDelegate ev)
public void AddEvent(Action<DrawningMonorail> ev)
{
if (EventAddMonorail == null)
{

View File

@ -1,12 +0,0 @@
using Monorail.DrawningObjects;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Monorail
{
public delegate void MonorailDelegate(DrawningMonorail monorail);
}