public void ClickShowWeb(DControlDto ctl)
        {
            Int32  maxPagePercent = FrameUtil.getMaxPercent(App.localStorage.cfg.screenWidth, App.localStorage.cfg.screenHeight);
            double screenWidth    = SystemParameters.PrimaryScreenWidth;//得到屏幕整体宽度

            Cfg pageCfg   = PageWidthUtil.getPageCfg(dPage, App.localStorage.cfg);
            int winWidth  = (int)(pageCfg.screenWidth * maxPagePercent / 100);
            int winHeight = (int)(pageCfg.screenHeight * maxPagePercent / 100);

            App.localStorage.currForm1 = new Form1(winWidth, winHeight, ctl.linkToWeb, screenWidth);
            App.localStorage.currForm1.ShowDialog();


            //Int32 maxPagePercent = FrameUtil.getMaxPercent(App.localStorage.cfg.screenWidth, App.localStorage.cfg.screenHeight);
            //double screenWidth = SystemParameters.PrimaryScreenWidth;//得到屏幕整体宽度

            //Cfg pageCfg = PageWidthUtil.getPageCfg(dPage, App.localStorage.cfg);
            //int winWidth = (int)(pageCfg.screenWidth * maxPagePercent / 100);
            //int winHeight = (int)(pageCfg.screenHeight * maxPagePercent / 100);
            //App.localStorage.currForm1 = new Form1(winWidth, winHeight, ctl.linkToWeb, screenWidth);
            //App.localStorage.currForm1.Left = 500;
            //App.localStorage.currForm1.Top = pageTemplate1.screen.Bounds.Top;
            //App.localStorage.currForm1.Show();
            //App.localStorage.currForm1.BringToFront();

            //App.localStorage.currForm1.Click += currForm1_Click;
        }
        /*
         * 初始化头部菜单
         */
        private void initHeaderMenu()
        {
            Int32 pagePercent = FrameUtil.getMaxPercent(App.localStorage.cfg.screenWidth, App.localStorage.cfg.screenHeight);

            mainFrame.Width  = App.localStorage.cfg.screenWidth;
            mainFrame.Height = App.localStorage.cfg.screenHeight;
            //根据
            changeMainFramePercent(pagePercent);
        }
        /*
         * 7.1 单击gif跳转
         *
         * 1.单击图片跳转到页面
         *
         * 2.跳转到外部网站
         *
         * 3.单击图片全屏播放视频
         *
         * 4.单击图片放大
         *
         *
         */
        private void gifFun(object sender)
        {
            Gif         gif = (Gif)sender;
            DControlDto ctl = (DControlDto)gif.Tag;

            this.DifferentScreenDifferentLinkTo(ctl);
            if (!string.IsNullOrWhiteSpace(ctl.linkToWeb))
            {
                Int32  pagePercent = FrameUtil.getMaxPercent(App.localStorage.cfg.screenWidth, App.localStorage.cfg.screenHeight);
                double screenWidth = SystemParameters.PrimaryScreenWidth;//得到屏幕整体宽度
                int    winWidth    = (int)(App.localStorage.cfg.screenWidth * pagePercent / 100);
                int    winHeight   = (int)(App.localStorage.cfg.screenHeight * pagePercent / 100);

                App.localStorage.currForm1 = new Form1(winWidth, winHeight, ctl.linkToWeb, screenWidth);
                App.localStorage.currForm1.ShowDialog();
            }
            else if (ctl.linkToVideoId > 0)
            {
                insertFullVideoToPage(ctl);
            }
            else if (ctl.isClickShow)
            {
                int frameWidth  = App.localStorage.cfg.screenWidth;
                int frameHeight = App.localStorage.cfg.screenHeight;
                if (dPage.width > 0)
                {
                    frameWidth = dPage.width;
                }
                if (dPage.height > 0)
                {
                    frameHeight = dPage.height;
                }

                Cfg cfg = new Cfg();
                cfg.screenWidth  = frameWidth;
                cfg.screenHeight = frameHeight;

                StorageGif storageGif = storageGifBll.get(ctl.storageId);
                if (storageGif == null)
                {  //默认gif
                    storageGif              = new StorageGif();
                    storageGif.id           = 0;
                    storageGif.url          = Params.GifNotExists;
                    storageGif.actualWidth  = 550;
                    storageGif.actualHeight = 400;
                    storageGif.ext          = ".gif";
                    storageGif.origFilename = "gif.gif";
                    storageGif.size         = 304874;
                    storageGif.folderId     = 1;
                }

                ShowBigGifUtil.showBigImage(storageGif, ctl, mainContainer, cfg);
            }
        }
        /*
         * 6.1点击文字跳转
         *
         * 1.单击文本跳转到页面
         *
         * 2.跳转到外部网站
         *
         * 3.单击文本全屏播放视频
         *
         * 4.单击文本放大
         *
         *
         */
        private void textBlockFun(object sender)
        {
            TextBlock textBlock = (TextBlock)sender;
            DControl  ctl       = (DControl)textBlock.Tag;

            this.DifferentScreenDifferentLinkTo(ctl);
            if (!string.IsNullOrWhiteSpace(ctl.linkToWeb))
            {
                Int32  pagePercent = FrameUtil.getMaxPercent(App.localStorage.cfg.screenWidth, App.localStorage.cfg.screenHeight);
                double screenWidth = SystemParameters.PrimaryScreenWidth;//得到屏幕整体宽度
                int    winWidth    = (int)(App.localStorage.cfg.screenWidth * pagePercent / 100);
                int    winHeight   = (int)(App.localStorage.cfg.screenHeight * pagePercent / 100);

                App.localStorage.currForm1 = new Form1(winWidth, winHeight, ctl.linkToWeb, screenWidth);
                App.localStorage.currForm1.ShowDialog();
            }
        }
        /*
         * 初始化头部菜单
         */
        private void initHeaderMenu()
        {
            DPage dPage       = dPageBll.get(currPageId);
            int   frameWidth  = App.localStorage.cfg.screenWidth;
            int   frameHeight = App.localStorage.cfg.screenHeight;

            if (dPage.width > 0)
            {
                frameWidth = dPage.width;
            }
            if (dPage.height > 0)
            {
                frameHeight = dPage.height;
            }

            Int32 pagePercent = FrameUtil.getMaxPercent(frameWidth, frameHeight);

            mainFrame.Width  = frameWidth;
            mainFrame.Height = frameHeight;

            //首次加载切换为默认百分比
            changeMainFramePercent(pagePercent);
        }