public ISwModelViewTab <TControl> CreateDocumentTab <TControl>(ISwDocument doc) { var tab = new SwModelViewTab <TControl>( new ModelViewTabCreator <TControl>(doc.Model.ModelViewManager, m_SvcProvider), doc.Model.ModelViewManager, (SwDocument)doc, Logger); tab.InitControl(); return(tab); }
public ISwModelViewTab <TControl> CreateDocumentTab <TControl>(ISwDocument doc) { var tab = new SwModelViewTab <TControl>( new ModelViewTabCreator <TControl>(doc.Model.ModelViewManager, m_SvcProvider), doc.Model.ModelViewManager, (SwDocument)doc, Application, Logger); tab.InitControl(); tab.Disposed += OnItemDisposed; m_Disposables.Add(tab); return(tab); }