private void button2_Click(object sender, EventArgs e) { IndexOpen open = new IndexOpen(this.comboBox1.Text, false); Console.WriteLine(110); if (open.IndexExists()) { bool isOpend = open.Open(); if (isOpend) { CurrentIndex.SetCurrentOpendIndex(open); this.Close(); this.DialogResult = DialogResult.OK; } else { MessageHelper.ShowErrorMessage("打开索引文件失败,有可能是索引文件损坏引起。"); } } else { MessageHelper.ShowErrorMessage("索引文件不存在!"); } }