Example #1
0
        /// <summary>
        /// The user clicked the button to update the current text.
        /// </summary>
        private void BtnUpdateText_Click(object sender, EventArgs e)
        {
            STR Strings = m_CurrentIff.StringTables[0];

            TranslatedString TranslatedStr =
                new TranslatedString()
            {
                LangCode = m_CurrentLanguage, TranslatedStr = TxtFloorStrings.Text
            };

            Strings.AddString(TranslatedStr, ObjectStringIndices.Description);

            m_CurrentIff.AddSTR(Strings.ID, Strings);

            BtnUpdateText.Visible = false;
        }