Skip to content

Commit fbc0278

Browse files
.
1 parent b1d62c1 commit fbc0278

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

roles/lib/files/FWO.Services/ModellingConnectionHandler.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
using FWO.Middleware.Client;
1111
using System.Data;
1212
using Microsoft.AspNetCore.Components;
13+
using static FWO.Data.Modelling.ModellingTypes;
1314

1415

1516
namespace FWO.Services
@@ -1021,6 +1022,8 @@ public bool CalcVisibility()
10211022

10221023
private bool IsAreaForbiddenInDirection(Direction direction)
10231024
{
1025+
var areas = AvailableSelectedObjects.Where(_ => _.Content.GroupType == (int)ModObjectType.NetworkArea).ToList();
1026+
10241027
return direction switch
10251028
{
10261029
Direction.Source => ActConn.DestinationAreas.Count > 0,

0 commit comments

Comments
 (0)