private static void MakeNotice(string url, string key, string title, int delay, int days, bool always) { if (!always) { bool flg = CookieUtil.GetCookie(key) == "1" ? true : false; if (flg) { return; } } Script.SetTimeout(delegate() { Ajax.MakeCall(url, new AjaxCallback(delegate(string err, string data, XHR xhr) { if (string.IsNullOrEmpty(data)) { return; } CookieUtil.SetCookie(key, "1", days); OverlayDialog OD = new OverlayDialog(title, data); OD.Id = key; OD.Show(); }), HTTPMethod.GET); }, delay * 1000); }
private static void SaveOptions(MatchOptions Options) { try { int days = 30; CookieUtil.SetCookie("y", Options.MatchYati ? "1" : "0", days); CookieUtil.SetCookie("p", Options.MatchPrasa ? "1" : "0", days); CookieUtil.SetCookie("sp", Options.AllowSantiPrasa ? "1" : "0", days); CookieUtil.SetCookie("qm", Options.QuickMatch ? "1" : "0", days); CookieUtil.SetCookie("es", Options.ExperimenatalSandhi ? "1" : "0", days); } catch { } }
private static void SetList2(bool grouped) { Util.SetClass("sort_a2z", grouped ? "sub" : "sub2"); Util.SetClass("sort_g", grouped ? "sub2" : "sub"); //Script.SetTimeout(delegate() //{ string curr = Util.SelectedValue("list"); Worker.SetList(true, grouped); if (curr != null) { Util.SetOption("list", curr); } //},100); CookieUtil.SetCookie("a2z", grouped ? "0" : "1", 30); //Save Sort Options }