public void Dispose() { if (_surface.IsLoaded) { IComponentChangeService changeService = (IComponentChangeService)_surface.GetService(typeof(IComponentChangeService)); changeService.ComponentChanged -= new ComponentChangedEventHandler(OnComponentChanged); _surface.Dispose(); _codeProvider = null; } }
public void Dispose() { _surface.Dispose(); }