public void Handle(ThreadEntity CurrentThreadEntity, Page.Page CurrentPageClass) { _threadEntity = CurrentThreadEntity; _threadEntity.ControlIndex += 1; Xy.WebSetting.WebSettingItem _tempWebConfig = null; if (_webConfig != null) { _tempWebConfig = _threadEntity.WebSetting; _threadEntity.WebSetting = _webConfig; } InitSourceHtml(); //if (_enableScript) { // ControlCollection cc = new Control.ControlAnalyze(ref _innerHtml, _threadEntity).ControlCollection; // cc.Handle(ref _innerHtml, ref _threadEntity); //} if (_enableScript) { ControlCollection cc; if (_threadEntity.WebSetting.DebugMode) { cc = new Control.ControlAnalyze(_innerHtml, _threadEntity).ControlCollection; } else { cc = _cacheItem._controlCollection; } cc.Handle(_innerHtml, _threadEntity, CurrentPageClass); } if (_webConfig != null) { _threadEntity.WebSetting = _tempWebConfig; } _threadEntity.ControlIndex -= 1; }
protected override void OnStart() { base.OnStart(); if (Renderer != null) { Renderer.material.mainTexture = Movie.OutputTexture; } Movie = GetComponent <AVProWindowsMediaMovie>(); _image.texture = Movie.OutputTexture; _page = GetComponent <Page.Page>(); _pagesController = _bootstrap.GetController(ControllerTypes.Page) as PagesController; _id = _page.Id; _type = _page.Type; _pagesController.NextPage += CheckPage; _pagesController.PreviousPage += CheckPage; _pagesController.OpenPage += CheckPage; _pagesController.OpenPageType += CheckPage; }
private static void inAdd(string key, Page.Page instance) { if (instance == null) { new Exception(string.Format("创建页面类缓存失败:{0}", key)); } if (!_list.ContainsKey(key)) { _list.Add(key, instance); } }
public RemovePageAnswerResponse(Page.Page page) { Page = page; }
public void Handle(ThreadEntity CurrentThreadEntity, Page.Page CurrentPageClass) { _threadEntity = CurrentThreadEntity; }