Exemplo n.º 1
0
		protected override global::System.Collections.Generic.IList<DslDesign::ModelingToolboxItem> CreateToolboxItems()
		{
			global::DmitriNesteruk.AsyncDsl.AsyncDslToolboxHelper toolboxHelper = new global::DmitriNesteruk.AsyncDsl.AsyncDslToolboxHelper(this);
			try
			{
				return toolboxHelper.CreateToolboxItems();
			}
			catch(global::System.Exception e)
			{
				global::System.Diagnostics.Debug.Fail("Exception thrown during toolbox item creation.  This may result in Package Load Failure:\r\n\r\n" + e);
				throw;
			}
		}
Exemplo n.º 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 AsyncDslEditorFactory(this));
			
			// Initialize the toolbox helper
			toolboxHelper = new global::DmitriNesteruk.AsyncDsl.AsyncDslToolboxHelper(this);

			// Create the command set that handles menu commands provided by this package.
			AsyncDslCommandSet commandSet = new AsyncDslCommandSet(this);
			commandSet.Initialize();
			
			// Register the model explorer tool window for this DSL.
			this.AddToolWindow(typeof(AsyncDslExplorerToolWindow));

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

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