AtelierElieScripter.DialogueChoices.DialogueChoicesControl.TextBoxesEngTextChanged C# (CSharp) Метод

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

private TextBoxesEngTextChanged ( object sender, EventArgs e ) : void
sender object
e EventArgs
Результат void
        void TextBoxesEngTextChanged(object sender, EventArgs e)
        {
            if (custListViewMain.SelectedIndices.Count > 0 && custListViewBlock.SelectedIndices.Count > 0)
            {
                DialogueChoicesEntry choicesEntry = GetCurrentDialogueEntry();
                int j = 0;

                for (int i = 0; i < textBoxesEng.Length; i++)
                {
                    if (sender == textBoxesEng[i])
                        j = i;
                }

                string[] texts = choicesEntry.EngText;

                texts[j] = textBoxesEng[j].Text;

                choicesEntry.EngText = texts;

                panelsEng[j].Visible = true;
                panelsEng[j].Invalidate();

                UpdateSelectedMainRow();
                UpdateSelectedBlockRow();
            }
        }