예제 #1
0
		/// <summary>
		/// Initialization method called by the package base class when this package is loaded.
		/// </summary>
		protected override void Initialize()
		{
			base.Initialize();

			// Register the editor factory used to create the DSL editor.
			this.RegisterEditorFactory(new MicrosoftDataEntityDesignEditorFactory(this));
			
			// Initialize the toolbox helper
			toolboxHelper = new global::Microsoft.Data.Entity.Design.EntityDesigner.MicrosoftDataEntityDesignToolboxHelper(this);

			// Create the command set that handles menu commands provided by this package.
			MicrosoftDataEntityDesignCommandSet commandSet = new MicrosoftDataEntityDesignCommandSet(this);
			commandSet.Initialize();
			
			// Initialize Extension Registars
			// this is a partial method call
			this.InitializeExtensions();

			// Add dynamic toolbox items
			this.SetupDynamicToolbox();
		}
예제 #2
0
        /// <summary>
        /// Initialization method called by the package base class when this package is loaded.
        /// </summary>
        protected override void Initialize()
        {
            base.Initialize();

            // Register the editor factory used to create the DSL editor.
            this.RegisterEditorFactory(new MicrosoftDataEntityDesignEditorFactory(this));

            // Initialize the toolbox helper
            toolboxHelper = new global::Microsoft.Data.Entity.Design.EntityDesigner.MicrosoftDataEntityDesignToolboxHelper(this);

            // Create the command set that handles menu commands provided by this package.
            MicrosoftDataEntityDesignCommandSet commandSet = new MicrosoftDataEntityDesignCommandSet(this);

            commandSet.Initialize();

            // Initialize Extension Registars
            // this is a partial method call
            this.InitializeExtensions();

            // Add dynamic toolbox items
            this.SetupDynamicToolbox();
        }