private HelpForm GetForm() { if (_form == null) { _form = new HelpForm(); _form.Find += _form_Find; _form.Disposed += (s, e) => _form = null; _form.Home = String.Format("http://localhost:{0}/", GetServer().EndPoint.Port); } return _form; }
protected override void Dispose(bool disposing) { if (!_disposed && disposing) { if (_form != null) { _form.Dispose(); _form = null; } if (_server != null) { _server.Dispose(); _server = null; } if (_searchManager != null) { _searchManager.Dispose(); _searchManager = null; } _disposed = true; } base.Dispose(disposing); }