private void button2_Click(object sender, EventArgs e)
        {                 string path = "";
                 string path1 = "";
               path = "LHDY5W.ENN";
                
                 if (File.Exists(path))//判断文件是否纯在
                 {
                     path1 = path;
                       
                 }
                 else
                 {
                     MessageBox.Show("文件不存在");                 }
文件不存在时需要退出程序,代码咋写?