private void UnrealBinaryBuilderWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e)
        {
            if (bIsBuilding)
            {
                if (MessageBox.Show("AutomationTool is still running. Would you like to stop it and exit?", "Build in progress", MessageBoxButton.YesNo, MessageBoxImage.Question) == MessageBoxResult.Yes)
                {
                    if (AutomationToolProcess != null)
                    {
                        GameAnalyticsCSharp.AddDesignEvent("Build:AutomationTool:Killed:ExitProgram");
                        AutomationToolProcess.Kill();
                    }
                }
                else
                {
                    e.Cancel = true;
                    return;
                }
            }

            GameAnalyticsCSharp.EndSession();
            SaveAllSettings();

            postBuildSettings.Close();
            postBuildSettings = null;
            Application.Current.Shutdown();
        }
Ejemplo n.º 2
0
        private void UnrealBinaryBuilderWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e)
        {
            if (IsBuilding)
            {
                if (MessageBox.Show("AutomationTool is still running. Would you like to stop it and exit?", "Build in progress", MessageBoxButton.YesNo, MessageBoxImage.Question) == MessageBoxResult.Yes)
                {
                    AutomationToolProcess.Kill();
                }
                else
                {
                    e.Cancel = true;
                    return;
                }
            }

            SaveAllSettings();

            postBuildSettings.Close();
            postBuildSettings = null;
            Application.Current.Shutdown();
        }