Exemple #1
0
        public virtual void Dispose()
        {
            System.Diagnostics.Trace.WriteLine("Disposing editor host.");

            if (disposed)
            {
                return;
            }
            disposed = true;

            if (designerView == null)
            {
                System.Diagnostics.Trace.WriteLine("DesignerView is already null when disposing; was it created correctly?");
            }
            else
            {
                designerView.Dispose();
            }

            GC.SuppressFinalize(this);
        }
Exemple #2
0
 public void Dispose()
 {
     view.Destroy();
     view.Dispose();
 }