private void DeleteCollection_Click(object sender, RoutedEventArgs e) { TileManagerViewModel vm = DataContext as TileManagerViewModel; DialogRemoveObject dialog = new DialogRemoveObject(vm.SelectedCollection.Name); dialog.DialogCompleted += DialogRemoveCollection_DialogCompleted; OnOpenDialog(new OpenDialogEventArgs(dialog)); }
private void RemovePlaceable_Click(object sender, RoutedEventArgs e) { TileManagerViewModel vm = DataContext as TileManagerViewModel; DialogRemoveObject dialog = new DialogRemoveObject(vm.SelectedCollection.PlaceableFile.Data[vm.SelectedPlaceableIndex].Name); dialog.DialogCompleted += DialogRemovePlaceable_DialogCompleted; OnOpenDialog(new OpenDialogEventArgs(dialog)); }