jaga jaga

This commit is contained in:
gg12 darfren 2023-11-04 16:39:11 +04:00
parent 9e78c3a41b
commit 07411e59cc
2 changed files with 4 additions and 5 deletions

View File

@ -61,8 +61,7 @@ namespace Monorail
}
FormMonorailConfig form = new();
form.Show();
form.EventAddMonorail += (m) =>
{
MonorailDelegate? monorailDelegate = new((m) => {
bool q = (obj + m);
if (q)
{
@ -73,8 +72,8 @@ namespace Monorail
{
MessageBox.Show("Не удалось добавить объект");
}
};
});
form.AddEvent(monorailDelegate);
}
private void deleteMonorailButton_Click(object sender, EventArgs e)

View File

@ -15,7 +15,7 @@ namespace Monorail
{
DrawningMonorail? _monorail = null;
public event MonorailDelegate? EventAddMonorail;
private event MonorailDelegate? EventAddMonorail;
DrawningMonorail SelectedMonorail(DrawningMonorail monorail)
{