public static void Beautify(Element elem, string identifier, MatchOptions2 Options2) { if (elem == null) { return; } if (identifier == "ignore") { return; } Init(); string padyam = CleanHTML(elem.InnerHTML.ToUpperCase()); string html = ""; if (Options2 == null) { Options2 = MapRules.DefaultOptions(); } html = (identifier == null || identifier == "") ? Determine(padyam, Options2) : TryMatch(padyam, identifier, Options2); if (html != "") { elem.InnerHTML = "<div class='formatted'>" + html + "</div>" + "<div class='orginal'>" + elem.InnerHTML + "</div>"; } Element Close = Util.FindByClass(elem, "open"); if (Close == null) { return; } Util.RegisterClick3(Close, delegate(ElementEvent ee) { Element Anchor = ee.Target.ParentNode.ParentNode; Element Target = Util.FindByClass(Anchor, "ganaVibhajana"); OverlayDialog OD = new OverlayDialog("", Target.InnerHTML); OD.FooterText = "ఛందం<sup class='copyright'>©</sup> తో పద్యసాహిత్యం మరింత రసమయం..!! [<a target='_blank' href='http://chandam.apphb.com'>http://chandam.apphb.com</a>]"; OD.ShowClose = false; OD.Show(); }); }
public void ActivateGameOverlay(OverlayDialog dialogType) { CheckIfUsable(); NativeMethods.Friends_ActivateGameOverlay((int)dialogType); }