Esempio n. 1
0
        private void editor_TilesetRemoved(object sender, TilesetEventArgs e)
        {
            TilesetViewModel tilesetViewModel = tilesetViewModels.FirstOrDefault(t => t.WrapsTileset(e.Tileset));

            tilesetViewModels.Remove(tilesetViewModel);

            OnPropertyChanged("Tilesets");
        }
Esempio n. 2
0
        /// <summary>
        /// Tileset is getting deleted soon, reset the actor.
        /// </summary>
        private void tileset_Deleting(object sender, TilesetEventArgs e)
        {
            tileset = null;

            Clear();
        }