Ejemplo n.º 1
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            this.Title = Grupo.Name;

            List <string> result = FuzzySearch.Search(Grupo.Text[0], Grupo.Text, 0.75);

            foreach (string item in result)
            {
                Ltb_words.Items.Add(item);
            }
        }
Ejemplo n.º 2
0
        private void Window_ContentRendered(object sender, EventArgs e)
        {
            App.stats = this;

            LoadAllPoints();

            for (int x = 0; x < urlPaths.Count; x++)
            {
                points.Add(0);
                for (int y = 0; y < urlPaths.Count; y++)
                {
                    if (urlPaths[y] == urlPaths[x] && x != y)
                    {
                        urlPaths[y] = "*_-*";
                        points[x]++;
                    }
                }
            }
            ordenador();
            List <string> toFuzzy = new List <string>();

            for (int x = points.Count - 1; x > -1; x--)
            {
                if (urlPaths[x] != "*_-*")
                {
                    Ltb_freq.Items.Add("QT." + points[x] + " " + urlPaths[x]);
                    toFuzzy.Add(urlPaths[x]);
                }
            }

            List <string> result = FuzzySearch.Search(toFuzzy[0], toFuzzy, 0.5);

            foreach (string item in result)
            {
                Ltb_Levh.Items.Add(item);
            }
        }