private void editor_TilesetRemoved(object sender, TilesetEventArgs e) { TilesetViewModel tilesetViewModel = tilesetViewModels.FirstOrDefault(t => t.WrapsTileset(e.Tileset)); tilesetViewModels.Remove(tilesetViewModel); OnPropertyChanged("Tilesets"); }
/// <summary> /// Tileset is getting deleted soon, reset the actor. /// </summary> private void tileset_Deleting(object sender, TilesetEventArgs e) { tileset = null; Clear(); }