コード例 #1
0
ファイル: MainAddIn.cs プロジェクト: yangcongs/codestack
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 internal GeometryHelperApiObject(GeometryHelperService geomSvc)
 {
     m_GeomSvc = geomSvc;
 }