Esempio n. 1
0
        /// <summary>
        /// This function is the callback used to execute the command when the menu item is clicked.
        /// See the constructor to see how the menu item is associated with this function using
        /// OleMenuCommandService service and MenuCommand class.
        /// </summary>
        /// <param name="Sender">Event sender.</param>
        /// <param name="Args">Event args.</param>
        private void Execute(object Sender, EventArgs Args)
        {
            ThreadHelper.ThrowIfNotOnUIThread();

            string FilePath = FunctionLibrary.GetCurrentUprojectFilePath();

            FunctionLibrary.InvokeUprojectCommand(
                UprojectCommandType.LaunchGame,
                FilePath
                );
        }