private void _plotterCtrl_PolylineAddPoint(object o, PlotterUserControlEventArgs info) { if (_plot.Checked) { AsyncRunCommand(() => { Com.SendCommands(new string[] { info.PolyLinePoint.HPGLCommand }); }); } }
private void _plotterCtrl_HpglMousePosition(object o, PlotterUserControlEventArgs info) { _coord.Text = // e.Location.X.ToString() + ":" + e.Location.Y.ToString() + "(" + info.HpglPosition.X.ToString() + " : " + info.HpglPosition.Y.ToString() + " => " + Math.Round(info.HpglPosition.X / 40.0, 1) + " : " + Math.Round(info.HpglPosition.Y / 40.0, 1) + "mm"; }
private void _plotterCtrl_ShapeCreated(object o, PlotterUserControlEventArgs info) { if (_plot.Checked && !(info.Shape is PolyLine)) { AsyncRunCommand(() => { Com.SendCommands(info.Shape.GetHPGLCommands()); }); } }