示例#1
0
        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));
        }
示例#2
0
        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));
        }