public void OnToolArc() { if (CurrentTool?.Title == "Path" && CurrentPathTool?.Title != "Arc") { CurrentPathTool?.Reset(); CurrentPathTool = PathTools.FirstOrDefault(t => t.Title == "Arc"); } else { OnResetTool(); CurrentTool = Tools.FirstOrDefault(t => t.Title == "Arc"); } }
public void OnToolQuadraticBezier() { if (CurrentTool?.Title == "Path" && CurrentPathTool?.Title != "QuadraticBezier") { CurrentPathTool?.Reset(); CurrentPathTool = PathTools.FirstOrDefault(t => t.Title == "QuadraticBezier"); } else { OnResetTool(); CurrentTool = Tools.FirstOrDefault(t => t.Title == "QuadraticBezier"); } }
private void OnResetPathTool() { CurrentPathTool?.Reset(); }