private void buttonCut_Click(object sender, EventArgs e) { double minx, maxx, miny, maxy, scale, width, height; IEnumerable <Vector2> leftProfile, rightProfile; _data.ProcessProfiles(panelPreview.Width, out leftProfile, out rightProfile, out minx, out maxx, out miny, out maxy, out scale, out width, out height); HotwireControl control = new HotwireControl(_configuration, _port); Vector2 last = null; foreach (Vector2 point in leftProfile) { if (last != null) { Vector2 vec = point - last; control.MoveRelative(vec.x, vec.y); } last = point; } }
private void buttonLeftUp_Click(object sender, EventArgs e) { _control.MoveRelative(0, -10); }