using OTSModelSharp.ServiceInterface; using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; namespace OTSMeasureApp.ServiceCenter { public class IpcSEMController: MarshalByRefObject { private SemController sem= SemController.GetSEMController(); public bool MoveSEMToPoint(Point poi, double rotation) { if (!sem.IsConnected()) { return false; } return sem.MoveSEMToPoint(poi, rotation); } public bool GetSemPositionXY(ref double a_dPositionX, ref double a_dPositionY, ref double a_dPositionR) { if (!sem.IsConnected()) { return false; } return sem.GetSemPositionXY(ref a_dPositionX, ref a_dPositionY, ref a_dPositionR); } } }