protected override void OnClosing(CancelEventArgs e) { if (parser != null) { parser.Clear(); } this.Dispose(); base.OnClosing(e); }