Example #1
0
        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);
        }
Example #2
0
        private static void InitList()
        {
            bool a2z = CookieUtil.GetCookie("a2z") == "1";

            if (a2z)
            {
                OnA2ZSort();
            }
            else
            {
                OnGroupSort();
            }
            Util.SetOption("list", "kandam");
        }
Example #3
0
        private static MatchOptions RedOptions()
        {
            try
            {
                MatchOptions Options = new MatchOptions();

                //Options.QuickMatch = CookieUtil.GetCookie("qm") == "1" ? true : false;
                //Options.MatchYati = CookieUtil.GetCookie("y") == "1" ? true : false;
                //Options.MatchPrasa = CookieUtil.GetCookie("p") == "1" ? true : false;

                Options.AllowSantiPrasa     = CookieUtil.GetCookie("sp") == "1" ? true : false;
                Options.ExperimenatalSandhi = CookieUtil.GetCookie("es") == "1" ? true : false;

                Options.MatchYati  = true;
                Options.MatchPrasa = true;
                Options.QuickMatch = true;

                return(Options);
            }
            catch
            {
            }
            return(null);
        }