AGS.Editor.Components.TranslationsComponent.ReplaceGameTextWithTranslation C# (CSharp) Метод

ReplaceGameTextWithTranslation() приватный Метод

private ReplaceGameTextWithTranslation ( AGS.Types.Translation translation ) : void
translation AGS.Types.Translation
Результат void
        private void ReplaceGameTextWithTranslation(Translation translation)
        {
            _agsEditor.SaveGameFiles();

            if (!CheckAllTranslationsAreWritable())
            {
                return;
            }

            translation.LoadData();
            CompileMessages errors = (CompileMessages)BusyDialog.Show("Please wait while the game text is replaced...", new BusyDialog.ProcessingHandler(ReplaceGameTextWithTranslationProcess), translation);
            _guiController.ShowOutputPanel(errors);
            Factory.Events.OnRefreshAllComponentsFromGame();
            _agsEditor.SaveGameFiles();
            _guiController.ShowMessage("Game text replaced with the translation text.", MessageBoxIcon.Information);
        }