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