public static void executeWorkOrder(GCodeWorkOrder wo) { // finally, the rubber meets the road! GCodeGenerator gpin = new GCodeGenerator(wo); File.WriteAllText(Path.Combine(wo.fileInfo.directory, wo.fileInfo.fileName), gpin.generateMainMill(!wo.useToothMill)); if (wo.useToothMill) { File.WriteAllText(Path.Combine(wo.fileInfo.directory, wo.fileInfo.toothFileName), gpin.generateToothMill()); } }