/* * 3.1 委托事件处理程序,链接到 * * 相册、层叠相册、流动相册 * */ public void TurnPictureItemFun(TurnPictureImagesDto dto, double width, double height, Point point, int pageId) { if (dto == null) { return; } //当前主控件 相册 层叠相册 流动相册 DControl mainDControl = dControlBll.get(dto.dControlId); if (mainDControl == null) { return; } DControlDto dControlDto = new DControlDto(); dControlDto.id = dto.id; dControlDto.width = Convert.ToInt32(width); dControlDto.height = Convert.ToInt32(height); dControlDto.left = Convert.ToInt32(point.X); dControlDto.top = Convert.ToInt32(point.Y); dControlDto.pageId = pageId; this.DifferentScreenDifferentLinkTo(dControlDto, dto.id); if (mainDControl.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; ShowBigImageUtil.showBigImage(dto.url, dControlDto, mainContainer, cfg); } }
public void ClickShowBigImage(DControlDto ctl) { Cfg pageCfg = PageWidthUtil.getPageCfg(dPage, App.localStorage.cfg); ShowBigImageUtil.showBigImage(ctl.url, ctl, mainContainer, pageCfg); }