public DocumentManager(SaveAllTheTabsPackage package) { Package = package; package.SolutionChanged += (sender, args) => LoadGroups(); LoadGroups(); DocumentWindowMgr = ServiceProvider.GetService(typeof(IVsUIShellDocumentWindowMgr)) as IVsUIShellDocumentWindowMgr; }
public DocumentManager(SaveAllTheTabsPackage package) { ThreadHelper.ThrowIfNotOnUIThread(); Package = package; package.SolutionChanged += (sender, args) => LoadGroups(); LoadGroups(); DocumentWindowMgr = ServiceProvider.GetService(typeof(IVsUIShellDocumentWindowMgr)) as IVsUIShellDocumentWindowMgr; Assumes.Present(DocumentWindowMgr); }
//private ListViewDragDropManager<DocumentGroup> _listViewDragDropManager; /// <summary> /// Initializes a new instance of the <see cref="SavedTabsToolWindowControl"/> class. /// </summary> public SavedTabsToolWindowControl(SaveAllTheTabsPackage package, SavedTabsWindowCommands commands) { Package = package; Commands = commands; Loaded += (sender, args) => RefreshBindingSources(Package.DocumentManager); Package.DocumentManager.GroupsReset += (sender, args) => RefreshBindingSources(sender as DocumentManager, true); Groups = package.DocumentManager?.Groups; InitializeComponent(); //_listViewDragDropManager = new ListViewDragDropManager<DocumentGroup>(TabsList); }