Пример #1
0
 public void SetPackage(QuickOpenFilePackage package)
 {
     this.package  = package;
     this.settings = package.Settings;
     searchEngine.SetPackage(package);
 }
Пример #2
0
 public void SetPackage(QuickOpenFilePackage package)
 {
     this.settings = package.Settings;
 }
Пример #3
0
 public void SetPackage(QuickOpenFilePackage package)
 {
     this.package = package;
     this.settings = package.Settings;
     searchEngine.SetPackage(package);
 }
Пример #4
0
        /// <summary>
        /// Initialization of the package; this method is called right after the package is sited, so this is the place
        /// where you can put all the initilaization code that rely on services provided by VisualStudio.
        /// </summary>
        protected override void Initialize()
        {
            Debug.Print(string.Format(CultureInfo.CurrentCulture, "Entering Initialize() of: {0}", this.ToString()));
            base.Initialize();

            var window = this.CreateToolWindow(typeof(QuickOpenFileToolWindow), 0) as QuickOpenFileToolWindow;

            window.SetPackage(this);
            //window.InitControl();

            // Add our command handlers for menu (commands must exist in the .vsct file)
            OleMenuCommandService mcs = GetService(typeof(IMenuCommandService)) as OleMenuCommandService;
            if (null != mcs)
            {
                // Create the command for the tool window
                CommandID toolwndCommandID = new CommandID(Guids.CmdSetGuid, (int)PkgCmdIDList.cmdidAOToolWindow);
                MenuCommand menuToolWin = new MenuCommand(ShowToolWindow, toolwndCommandID);
                mcs.AddCommand(menuToolWin);
            }
            Instance = this;
        }
Пример #5
0
 public void SetPackage(QuickOpenFilePackage package)
 {
     control.SetPackage(package);
 }
Пример #6
0
 public void SetPackage(QuickOpenFilePackage package)
 {
     control.SetPackage(package);
 }