public void frmCNDServiceApplication_FormClosing(object sender, System.Windows.Forms.FormClosingEventArgs e) { try { _CNDService.Dispose(); } catch (Exception) { } }