private void RemoveSelectedMap() { Map map = (Map)lstMaps.SelectedObject; if (map == null) { return; } parser.RemoveMap(map); lstMaps.SetObjects(parser.GetMaps()); }