private void LoadDictionary(string FileName) { _dic.ReadFile(@"Program Files\DictionaryForPPC\" + FileName); cmbWord.Items.Clear(); for (int count = 0; count < Math.Min(5, _dic.Count); count++) { CRecord rec = _dic[count]; cmbWord.Items.Add(rec.Word); } }
private void Form1_Load(object sender, EventArgs e) { DateTime d1 = DateTime.Now; dic.ReadFile(@"c:\Anh_Viet4"); DateTime d2 = DateTime.Now; textBox1.Text = (d2 - d1).ToString(); comboBox1.Items.AddRange(dic.ListWord.ToArray()); // Infor item = new Infor(); // item.szWord = "."; // dic.BinarySearchForIndex(0, dic.Count,item, new CompareInforWithoutExact()); }