public virtual void CloseView(IViewContent content) { if (ViewContentCollection.Contains(content)) { ViewContentCollection.Remove(content); } content.Dispose(); content = null; }
public void CloseContent(IViewContent content) { if (ViewContentCollection.Contains(content)) { ViewContentCollection.Remove(content); } OnViewClosed(new ViewContentEventArgs(content)); content.Dispose(); content = null; }
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; }