Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
JR-Morgan committed Jun 17, 2024
1 parent c0fe950 commit 09c6101
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class AutocadSelectionBinding : ISelectionBinding
private readonly TopLevelExceptionHandler _topLevelExceptionHandler;
private readonly HashSet<Document> _visitedDocuments = new();

public string Name { get; } = "selectionBinding";
public string Name => "selectionBinding";

public IBridge Parent { get; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ public class RhinoSelectionBinding : ISelectionBinding
{
private const string SELECTION_EVENT = "setSelection";

public string Name { get; } = "selectionBinding";
public IBridge Parent { get; set; }
public string Name => "selectionBinding";
public IBridge Parent { get; }

public RhinoSelectionBinding(RhinoIdleManager idleManager, IBridge parent)
{
Expand All @@ -34,7 +34,7 @@ public RhinoSelectionBinding(RhinoIdleManager idleManager, IBridge parent)
private void OnSelectionChanged()
{
SelectionInfo selInfo = GetSelection();
Parent?.Send(SELECTION_EVENT, selInfo);
Parent.Send(SELECTION_EVENT, selInfo);
}

public SelectionInfo GetSelection()
Expand Down

0 comments on commit 09c6101

Please sign in to comment.