Beispiel #1
0
        private static void InitList()
        {
            bool a2z = CookieUtil.GetCookie("a2z") == "1";

            if (a2z)
            {
                OnA2ZSort();
            }
            else
            {
                OnGroupSort();
            }
            Util.SetOption("list", "kandam");
        }
Beispiel #2
0
 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
     {
     }
 }
Beispiel #3
0
        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
        }
Beispiel #4
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);
        }