Example #1
0
        public MacrosToolWindow() :
            base(null)
        {
            this.owningPackage    = VSMacrosPackage.Current;
            this.Caption          = Resources.ToolWindowTitle;
            this.BitmapResourceID = 301;
            this.BitmapIndex      = 1;

            // Instantiate Tool Window Toolbar
            this.ToolBar = new CommandID(GuidList.GuidVSMacrosCmdSet, PkgCmdIDList.MacrosToolWindowToolbar);

            Manager.CreateFileSystem();

            string macroDirectory = Manager.MacrosPath;

            // Create tree view root
            MacroFSNode root = new MacroFSNode(macroDirectory);

            // Make sure it is opened and selected by default
            root.IsExpanded = true;

            // Initialize Macros Control
            var macroControl = new MacrosControl(root);

            macroControl.Loaded += this.OnLoaded;
            this.Content         = macroControl;

            Manager.Instance.LoadFolderExpansion();
        }
Example #2
0
        public MacrosToolWindow()
            : base(null)
        {
            this.owningPackage = VSMacrosPackage.Current;
            this.Caption = Resources.ToolWindowTitle;
            this.BitmapResourceID = 301;
            this.BitmapIndex = 1;

            // Instantiate Tool Window Toolbar
            this.ToolBar = new CommandID(GuidList.GuidVSMacrosCmdSet, PkgCmdIDList.MacrosToolWindowToolbar);

            Manager.CreateFileSystem();

            string macroDirectory = Manager.MacrosPath;

            // Create tree view root
            MacroFSNode root = new MacroFSNode(macroDirectory);

            // Make sure it is opened and selected by default
            root.IsExpanded = true;

            // Initialize Macros Control
            var macroControl = new MacrosControl(root);
            macroControl.Loaded += this.OnLoaded;
            this.Content = macroControl;

            Manager.Instance.LoadFolderExpansion();
        }
Example #3
0
 public VSMacrosPackage()
 {
     VSMacrosPackage.current = this;
 }
Example #4
0
 public VSMacrosPackage()
 {
     VSMacrosPackage.current = this;
 }