Пример #1
0
 public virtual void CloseView(IViewContent content)
 {
     if (ViewContentCollection.Contains(content))
     {
         ViewContentCollection.Remove(content);
     }
     content.Dispose();
     content = null;
 }
Пример #2
0
        public void CloseContent(IViewContent content)
        {
            if (ViewContentCollection.Contains(content))
            {
                ViewContentCollection.Remove(content);
            }

            OnViewClosed(new ViewContentEventArgs(content));

            content.Dispose();
            content = null;
        }
Пример #3
0
 public void CloseContent(IViewContent content)
 {
     if (PropertyService.Get("SharpDevelop.LoadDocumentProperties", true) && content is IMementoCapable)
     {
         StoreMemento(content);
     }
     if (ViewContentCollection.Contains(content))
     {
         ViewContentCollection.Remove(content);
     }
     OnViewClosed(new ViewContentEventArgs(content));
     content.Dispose();
     content = null;
 }