Ejemplo n.º 1
0
        public string[] getlist()
        {
            string filename = this.getTxtfilename();

            string[] lines = System.IO.File.ReadAllLines(SymbolList.readItemPath(filename));
            this.replace(ref lines, "\t", " ");
            return(lines);
        }
Ejemplo n.º 2
0
        private void setAutocomplete(ref TextBox tb, string filename)
        {
            SymbolList.SymbolList sl = new SymbolList.SymbolList(filename);
            tb.AutoCompleteMode   = AutoCompleteMode.Suggest;
            tb.AutoCompleteSource = AutoCompleteSource.CustomSource;
            AutoCompleteStringCollection collection = new AutoCompleteStringCollection();

            collection.AddRange(sl.getlist());
            tb.AutoCompleteCustomSource = collection;
        }