public void C_OnArticleCacheReady(ArticleCache articleCache) { string text = ("<!DOCTYPE HTML PUBLIC \" -//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">" + "<html><head>" + WikiDiff.DiffHead() + @"</head><body>" + WikiDiff.TableHeader + Diff.GetDiff(articleCache.Article_WikiContent, articleCache.TranslatedArticle_Content, 2) + "</table></body></html>"); try { if (InvokeMyWebBrowserEvent != null) { this.Invoke(InvokeMyWebBrowserEvent, text); } } catch (Exception ex) { ErrorHandler.Handle(ex); } //GetDifferences(articleCache.Article_WikiContent, articleCache.TranslatedArticle_Content); }
/// <summary> /// Copies an article cache /// </summary> /// <param name="source"></param> /// <param name="destination"></param> public static void ShallowCopy(ArticleCache source, ArticleCache destination) { if (source == null) { return; } if (destination == null) { destination = new ArticleCache(); } destination.ArticleName = source.ArticleName; destination.Article_WikiContent = source.Article_WikiContent; destination.TranslatedArticle_Content = source.TranslatedArticle_Content; destination.IsTranslatedArticle = source.IsTranslatedArticle; }