protected override void Dispose(bool disposing) { base.Dispose(disposing); if (disposing && _host != null) { _host.StopComponent(); _host = null; _workspace = null; } }