Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }