private void deleteSetButton_Click(object sender, RoutedEventArgs e) { editor.RemoveTileset(tilesetsViewModel.Selected.Name); tilesetsViewModel.Tilesets.Remove(tilesetsViewModel.Selected); tilesetsViewModel.Selected = null; }