i have a sortedLIst. The value in sortedList is already change to percentage.
when i key in the minimum support, if the value is not fulfill the minimum support, then it will be ignore.
MY sortedList:
1: 55
2: 70
4: 25
3: 65
6: 15
5: 30
my expected output when i key in minimum support =40%
1: 55
2: 70
3: 65

my code are shown below:

double v2;
            richTextBox13.Clear();
            foreach (String sorting2 in sortList1.Keys)
            {
                if (!(sortList11.ContainsKey(sorting2)))
                {
                    sortList1.TryGetValue(sorting2, out v2);

                    sortList11.Add(sorting2, v2);
                    double Count1 = (double)sortList11[sorting2];
                    sortList11[sorting2] = (v2 / ContentBox.Lines.Length) * 100;

                }
                richTextBox13.AppendText(string.Format("{0:n2}", sorting2 + ": " + sortList11[sorting2].ToString()) + "\n");
            }

            double[] store = new double[richTextBox13.Lines.Length];
            int al = 0;
            foreach (double abv in sortList11.Values)
            {
                store[al] = abv;
                al++;
            }
            string min_supp = textBox9.Text;
            double min = Double.Parse(min_supp);
            textBox4.Text = textBox9.Text;
            string output = "";

            for (int prune = 0; prune < richTextBox13.Lines.Length; prune++)
            {
                if (store[prune] >= min)
                {
                    output += store[prune] + "\n";
                }
                richTextBox14.Clear();
                richTextBox14.AppendText(output);
            }

now my problem is when i key in minimum support 40%, then it fill filter, but just can show the value only, cant show the key.

hope someone can help me..

i have a sortedLIst.

No you don't. Stop using the name sortedlist and use meaningful variable names. And if you don't show the declaration of the variable tell us what it really is.

This article has been dead for over six months. Start a new discussion instead.