Ejemplo n.º 1
0
        private int RefreshTagDictionary()
        {
            int iManga = 0;

            sdtTags.Clear();

            for (int i = 0; i < dtManga.Rows.Count; i++)
            {
                if (ChkBx_FavsOnly.Checked &&
                    decimal.Parse(dtManga.Rows[i]["Rating"].ToString()) < 5)
                {
                    continue;
                }

                foreach (string svar in Ext.Split(dtManga.Rows[i]["Tags"].ToString(), ","))
                {
                    string sItem = svar.TrimStart();
                    if (sdtTags.ContainsKey(sItem))
                    {
                        sdtTags[sItem]++;
                    }
                    else
                    {
                        sdtTags.Add(sItem, 1);
                    }
                }
                iManga++;
            }

            return(iManga);
        }
Ejemplo n.º 2
0
            public csEHAPI(string URL)
            {
                string[] asChunk = Ext.Split(URL, "/");

                if (asChunk.Length == 5)
                {
                    gidlist    = new object[1][];
                    gidlist[0] = new object[2] {
                        int.Parse(asChunk[3]), asChunk[4]
                    };
                }
            }