Example #1
0
 public Form3()
 {
     tags = classifierProvider.GetTags("");
     InitializeComponent();
     listBox1.Items.Clear();
     listBox1.Items.AddRange(tags);
 }
Example #2
0
        private void textBox2_Enter(object sender, EventArgs e)
        {
            // autocomplete while typing tags
            AutoCompleteStringCollection data = new AutoCompleteStringCollection();

            data.AddRange(classifierProvider.GetTags("").AsParallel().Select(x => x.name).ToArray());
            textBox2.AutoCompleteCustomSource = data;
        }