public IData GetData(string tag, DataType type) { switch (type) { case DataType.City: { SelectedData = SelectData.GetDataById(DefaultCollection.Citys, tag); return(SelectedData); } case DataType.Terrain: { SelectedData = new StaticTerrain { Name = "default", DataType = DataType.Terrain, TagName = "terrain_default" }; return(SelectedData);; } } return(null); }