Exemplo n.º 1
0
        /// <summary>
        /// Construct a platform menu for a given, named platform, starting at the given command id
        /// </summary>
        /// <param name="Name">The name of the platform</param>
        /// <param name="InDynamicStartCommandId">The start of the command range for this menu</param>
        public PlaformMenuContents(string Name, int InDynamicStartCommandId)
        {
            DynamicStartCommandId = InDynamicStartCommandId;
            PlaformName           = Name;

            // Create the dynamic menu
            var MenuOleCommand = new QuickBuildMenuCommand(
                new CommandID(GuidList.UnrealVSCmdSet, DynamicStartCommandId),
                IsValidDynamicItem,
                OnInvokedDynamicItem,
                OnBeforeQueryStatusDynamicItem
                );

            UnrealVSPackage.Instance.MenuCommandService.AddCommand(MenuOleCommand);
        }
Exemplo n.º 2
0
		/// <summary>
		/// Construct a platform menu for a given, named platform, starting at the given command id
		/// </summary>
		/// <param name="Name">The name of the platform</param>
		/// <param name="InDynamicStartCommandId">The start of the command range for this menu</param>
		public PlaformMenuContents(string Name, int InDynamicStartCommandId)
		{
			DynamicStartCommandId = InDynamicStartCommandId;
			PlaformName = Name;

			// Create the dynamic menu
			var MenuOleCommand = new QuickBuildMenuCommand(
				new CommandID(GuidList.UnrealVSCmdSet, DynamicStartCommandId),
				IsValidDynamicItem,
				OnInvokedDynamicItem,
				OnBeforeQueryStatusDynamicItem
				);
			UnrealVSPackage.Instance.MenuCommandService.AddCommand(MenuOleCommand);
		}