private void Button_Click_1(object sender, RoutedEventArgs e) { GridGenerator grid = new GridGenerator(25, 25, 3, 3); grid.BottomLeftOrigin = new StencilG.Point(-37.5, -37.5); List<GCode> commands = grid.RepeatPattern(recordList); foreach (GCode gcode in commands) { serial.Send(gcode.ToString()); } }
private void Button_Click(object sender, RoutedEventArgs e) { GridGenerator grid = new GridGenerator(5, 5, 20, 20); grid.BottomLeftOrigin = new StencilG.Point(-50, -50); grid.Compute(); foreach (GCode gcode in grid.Commands) { serial.Send(gcode.ToString()); } }