Ejemplo n.º 1
0
        public override bool OnConnect()
        {
            m_GeometryService = new GeometryHelperService(App);

            m_ApiObject = new GeometryHelperApiObject(m_GeometryService);

            RotHelper.Register(m_ApiObject, new GeometryHelperApiObjectFactory().GetName(App.GetProcessID()));

            this.AddCommandGroup <Commands_e>(OnButtonClick);

            return(true);
        }
        public override bool OnConnect()
        {
            m_GeometryService = new GeometryHelperService(App);

            //option1
            //var proxy = new GeometryHelperApiObjectProxy();
            //proxy.GetFacesCountRequested += OnGetFacesCountRequested;
            //m_ApiObject = proxy;
            //

            //option2
            m_ApiObject = new GeometryHelperApiObject(m_GeometryService);
            //

            RotHelper.Register(m_ApiObject, new GeometryHelperApiObjectFactory().GetName(App.GetProcessID()));

            this.AddCommandGroup <Commands_e>(OnButtonClick);

            return(true);
        }
Ejemplo n.º 3
0
 internal GeometryHelperApiObject(GeometryHelperService geomSvc)
 {
     m_GeomSvc = geomSvc;
 }