CEngineSharp_Editor.NpcEditor.textName_TextChanged C# (CSharp) Method

textName_TextChanged() private method

private textName_TextChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        private void textName_TextChanged(object sender, EventArgs e)
        {
            this.selectedNpc.Name = this.textName.Text;

            int index = this.npcListBox.SelectedIndex;

            this.npcListBox.Items[index] = this.textName.Text;

            this.npcListBox.SelectedIndex = index;
        }