Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
using OpenScadGraphEditor.Library;
using OpenScadGraphEditor.Nodes.Reroute;
namespace OpenScadGraphEditor.Refactorings
{
/// <summary>
/// Refactoring which toggles whether or not a reroute node is wireless.
/// </summary>
public class ToggleWirelessRefactoring : NodeRefactoring
{
public ToggleWirelessRefactoring(ScadGraph holder, RerouteNode node) : base(holder, node)
{
}
public override void PerformRefactoring(RefactoringContext context)
{
var node = (RerouteNode)Node;
node.IsWireless = !node.IsWireless;
}
}
}7951eb9aaThis file is pinned to the selected release. Download the original to open it in your design tool.