Inheritance: CompoModule
Example #1
0
        public void StartModule(LayoutFarm.SampleViewport sampleViewport)
        {
            this.viewport = sampleViewport;
            dzBoardModule = new DesignBoardModule();

            menuModule = new MenuBoardModule();
            menuModule.menuItemClick += new EventHandler <MenuItemClickEventArgs>(menuModule_menuItemClick);


            var contentMx = new LayoutFarm.ContentManagers.ImageContentManager();

            contentMx.ImageLoadingRequest += contentMx_ImageLoadingRequest;
            //app specific here
            documentRootPath = System.Windows.Forms.Application.ExecutablePath;

            this.htmlHost = HtmlHostCreatorHelper.CreateHtmlHost(viewport,
                                                                 (s, e) => contentMx.AddRequestImage(e.ImageBinder),
                                                                 contentMx_LoadStyleSheet);

            //1. design board
            dzBoardModule.StartModule(htmlHost, this.viewport);
            ////2. canvas board
            //drawingBoard.StartModule(htmlHost, this.viewport);
            //3. menu
            menuModule.StartModule(htmlHost, this.viewport);

            //------------------------------------------------------
            //context knowledge***
            //------------------------------------------------------
        }
Example #2
0
 public void StartModule(LayoutFarm.SampleViewport sampleViewport)
 {
     this.viewport = sampleViewport;
     dzBoardModule = new DesignBoardModule();
     menuModule = new MenuBoardModule();
     menuModule.menuItemClick += new EventHandler<MenuItemClickEventArgs>(menuModule_menuItemClick);
     var contentMx = new LayoutFarm.ContentManagers.ImageContentManager();
     contentMx.ImageLoadingRequest += contentMx_ImageLoadingRequest;
     //app specific here
     documentRootPath = System.Windows.Forms.Application.ExecutablePath;
     this.htmlHost = HtmlHostCreatorHelper.CreateHtmlHost(viewport,
         (s, e) => contentMx.AddRequestImage(e.ImageBinder),
         contentMx_LoadStyleSheet);
     //1. design board
     dzBoardModule.StartModule(htmlHost, this.viewport);
     ////2. canvas board
     //drawingBoard.StartModule(htmlHost, this.viewport);
     //3. menu
     menuModule.StartModule(htmlHost, this.viewport);
     //------------------------------------------------------
     //context knowledge*** 
     //------------------------------------------------------
 }