Esempio n. 1
0
        /// <summary>
        /// This function is the callback used to execute a command when the a menu item is clicked.
        /// See the Initialize method to see how the menu item is associated to this function using
        /// the OleMenuCommandService service and the MenuCommand class.
        /// </summary>
        private void NestInCallback(object sender, EventArgs e)
        {
            var rootSelector = new RootSelector();
            var envDte       = GetService <DTE>();

            new Worker(envDte, rootSelector).Nest();
            rootSelector.Dispose();
        }
Esempio n. 2
0
        /// <summary>
        /// This function is the callback used to execute a command when the a menu item is clicked.
        /// See the Initialize method to see how the menu item is associated to this function using
        /// the OleMenuCommandService service and the MenuCommand class.
        /// </summary>
        private void UnNestCallback(object sender, EventArgs e)
        {
            var rootSelector = new RootSelector();
            var envDte       = GetService <DTE>();

            new Worker(envDte, rootSelector, DefaultSelectionMode, ShouldPromptForDefaultRoot).UnNest();
            rootSelector.Dispose();
        }