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