private void buttonStat_Click(object sender, EventArgs e) { StatForm form = new StatForm(cbIn.Text); int i = cbIn.FindStringExact(cbIn.Text); if (i < 0) { cbIn.Items.Insert(0, cbIn.Text); List<string> al = new List<string>(); foreach (object o in cbIn.Items) al.Add(o.ToString()); RecentDirs = al.ToArray(); } form.Show(); }
private void buttonStat_Click(object sender, EventArgs e) { StatForm form = new StatForm(cbIn.Text); int i = cbIn.FindStringExact(cbIn.Text); if (i < 0) { cbIn.Items.Insert(0, cbIn.Text); List <string> al = new List <string>(); foreach (object o in cbIn.Items) { al.Add(o.ToString()); } RecentDirs = al.ToArray(); } form.Show(); }