CEngineSharp_Editor.NpcEditor.npcListBox_SelectedIndexChanged C# (CSharp) Метод

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

private npcListBox_SelectedIndexChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Результат void
        private void npcListBox_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (this.npcListBox.SelectedIndex < 0 || this.npcListBox.SelectedIndex > this.npcs.Count)
                return;

            this.selectedNpc = this.npcs[this.npcListBox.SelectedIndex];

            this.PopulateData();
        }