private void Dfs2() { FileInfo fi = new FileInfo(textBoxFile12.Text); if (!fi.Exists) { richTextBoxStatus.Text = "File [" + fi.FullName + "] does not exist.\r\n"; return; } using (DFS2 dfs2 = new DFS2(fi)) { dfs2.CSSPDHIChanged += CSSPDHIChanged; dfs2.ReadFile(); dfs2.CSSPDHIChanged -= CSSPDHIChanged; } }