예제 #1
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="package">Visual Studio Package.</param>
        /// <param name="packageController">Package controller.</param>
        protected ShellDockingManager(ModelPackage package, ShellPackageController packageController)
        {
            this.packageController  = packageController;
            this.viewLookup         = new Dictionary <string, Dictionary <string, ViewLookUp> >();
            this.viewTypeNameLookup = new Dictionary <string, List <string> >();
            this.paneViewLookup     = new Dictionary <Guid, string>();

            this.package = package;

            //this.visibleCollection = new ObservableCollection<IDockableViewModel>();
            //this.hiddenCollection = new ObservableCollection<IDockableViewModel>();

            this.package.ActiveWindowChangedEvent += new ModelPackage.ActiveWindowChangedEventHandler(Package_ActiveWindowChangedEvent);
            this.closeSelectedDocumentPaneCommand  = new DelegateCommand(CloseSDPCommand_Execute, CloseSDPCommand_CanExecute);
            this.documentPaneControlActivated      = new DelegateCommand(DocumentPaneControlActivated_Execute);
        }
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="package">Visual Studio Package.</param>
        /// <param name="packageController">Package controller.</param>
        protected ShellDockingManager(ModelPackage package, ShellPackageController packageController)
        {
            this.packageController = packageController;
            this.viewLookup = new Dictionary<string, Dictionary<string, ViewLookUp>>();
            this.viewTypeNameLookup = new Dictionary<string, List<string>>();
            this.paneViewLookup = new Dictionary<Guid, string>();

            this.package = package;

            //this.visibleCollection = new ObservableCollection<IDockableViewModel>();
            //this.hiddenCollection = new ObservableCollection<IDockableViewModel>();

            this.package.ActiveWindowChangedEvent += new ModelPackage.ActiveWindowChangedEventHandler(Package_ActiveWindowChangedEvent);
            this.closeSelectedDocumentPaneCommand = new DelegateCommand(CloseSDPCommand_Execute, CloseSDPCommand_CanExecute);
            this.documentPaneControlActivated = new DelegateCommand(DocumentPaneControlActivated_Execute);
        }