public void BindToView() { ExibitInfo info = _controller.GetExibitInfo(); NSUrl dirUrl = new NSUrl(info.DirPath, true); _contentDisplayer.LoadHtmlString(info.HtmlExibitInfo, dirUrl); }
public ExibitInfo GetExibitInfoByKey(string key) { bool isKeyValid = !string.IsNullOrWhiteSpace(key) && _keyFilePathMap.ContainsKey(key); key = isKeyValid ? key : NotFoundKey; string pathToFile = _keyFilePathMap[key]; string htmlContent = _storage.GetExibitInfoByPath(pathToFile); ExibitInfo info = new ExibitInfo { HtmlExibitInfo = htmlContent, DirPath = Path.GetDirectoryName(pathToFile) }; return(info); }
public ExibitInfo GetExibitInfo() { ExibitInfo info = _service.GetExibitInfoByKey(ExibitInfoKey); return(info); }