Refactor drill tape reading and reorder logic
This commit is contained in:
@@ -549,7 +549,7 @@ namespace DrillTools.Integration
|
||||
/// <param name="toolNumberMapping">刀具编号映射</param>
|
||||
/// <param name="reorderedTools">重新排序的刀具列表</param>
|
||||
/// <returns>更新后的钻带内容</returns>
|
||||
private static string UpdateDrillTapeWithNewToolNumbers(string originalDrillTape, Dictionary<int, int> toolNumberMapping, List<ToolItem> reorderedTools)
|
||||
public static string UpdateDrillTapeWithNewToolNumbers(string originalDrillTape, Dictionary<int, int> toolNumberMapping, List<ToolItem> reorderedTools)
|
||||
{
|
||||
var lines = originalDrillTape.Split(new[] { '\r', '\n' }, StringSplitOptions.None);
|
||||
var result = new List<string>();
|
||||
@@ -709,4 +709,4 @@ namespace DrillTools.Integration
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user