CEngineSharp_Editor.MapEditor.mapList_SelectedIndexChanged C# (CSharp) Method

mapList_SelectedIndexChanged() private method

private mapList_SelectedIndexChanged ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void mapList_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (mapList.SelectedIndex < 0 || mapList.SelectedIndex >= mapList.Items.Count)
                return;

            this.mapEditorProperties.CurrentMap = this.maps[mapList.SelectedIndex];
            this.mapPropertyGrid.Refresh();

            this.Text = this.mapEditorProperties.CurrentMap.Name + " Version: " + this.mapEditorProperties.CurrentMap.Version;
        }