예제 #1
0
        public DocumentManager(SaveAllTheTabsPackage package)
        {
            Package = package;

            package.SolutionChanged += (sender, args) => LoadGroups();
            LoadGroups();

            DocumentWindowMgr = ServiceProvider.GetService(typeof(IVsUIShellDocumentWindowMgr)) as IVsUIShellDocumentWindowMgr;
        }
예제 #2
0
        public DocumentManager(SaveAllTheTabsPackage package)
        {
            Package = package;

            package.SolutionChanged += (sender, args) => LoadGroups();
            LoadGroups();

            DocumentWindowMgr = ServiceProvider.GetService(typeof(IVsUIShellDocumentWindowMgr)) as IVsUIShellDocumentWindowMgr;
        }
예제 #3
0
        public DocumentManager(SaveAllTheTabsPackage package)
        {
            ThreadHelper.ThrowIfNotOnUIThread();
            Package = package;

            package.SolutionChanged += (sender, args) => LoadGroups();
            LoadGroups();

            DocumentWindowMgr = ServiceProvider.GetService(typeof(IVsUIShellDocumentWindowMgr)) as IVsUIShellDocumentWindowMgr;
            Assumes.Present(DocumentWindowMgr);
        }
예제 #4
0
        //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);
        }
        //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);
        }