2020-04-14 17:49:29 +02:00
|
|
|
|
using System;
|
2017-11-28 18:53:10 +01:00
|
|
|
|
using System.Collections.ObjectModel;
|
|
|
|
|
using System.Collections.Specialized;
|
2017-09-12 18:20:32 +02:00
|
|
|
|
using System.Linq;
|
2018-06-20 18:41:56 +02:00
|
|
|
|
using System.Threading.Tasks;
|
2020-03-30 19:43:04 +02:00
|
|
|
|
using Windows.UI.Xaml.Controls;
|
2020-04-22 16:21:47 +02:00
|
|
|
|
using GalaSoft.MvvmLight;
|
2020-04-23 19:00:38 +02:00
|
|
|
|
using GalaSoft.MvvmLight.Command;
|
2020-04-21 13:33:15 +02:00
|
|
|
|
using GalaSoft.MvvmLight.Views;
|
2020-03-26 12:25:22 +01:00
|
|
|
|
using MediatR;
|
2020-05-04 12:48:27 +02:00
|
|
|
|
using Messages;
|
2020-04-21 19:12:26 +02:00
|
|
|
|
using ModernKeePass.Application.Common.Interfaces;
|
2020-03-26 12:25:22 +01:00
|
|
|
|
using ModernKeePass.Application.Database.Commands.SaveDatabase;
|
2020-03-27 18:45:13 +01:00
|
|
|
|
using ModernKeePass.Application.Database.Models;
|
2020-03-26 12:25:22 +01:00
|
|
|
|
using ModernKeePass.Application.Database.Queries.GetDatabase;
|
2020-04-02 19:12:16 +02:00
|
|
|
|
using ModernKeePass.Application.Entry.Models;
|
2020-03-27 13:27:29 +01:00
|
|
|
|
using ModernKeePass.Application.Group.Commands.AddEntry;
|
2020-03-27 18:45:13 +01:00
|
|
|
|
using ModernKeePass.Application.Group.Commands.AddGroup;
|
2020-03-27 13:27:29 +01:00
|
|
|
|
using ModernKeePass.Application.Group.Commands.CreateEntry;
|
|
|
|
|
using ModernKeePass.Application.Group.Commands.CreateGroup;
|
2020-04-02 19:12:16 +02:00
|
|
|
|
using ModernKeePass.Application.Group.Commands.DeleteGroup;
|
2020-04-09 19:43:06 +02:00
|
|
|
|
using ModernKeePass.Application.Group.Commands.MoveEntry;
|
2020-05-11 19:22:41 +02:00
|
|
|
|
using ModernKeePass.Application.Group.Commands.MoveGroup;
|
2020-03-27 18:45:13 +01:00
|
|
|
|
using ModernKeePass.Application.Group.Commands.RemoveGroup;
|
2020-03-27 13:27:29 +01:00
|
|
|
|
using ModernKeePass.Application.Group.Commands.SortEntries;
|
|
|
|
|
using ModernKeePass.Application.Group.Commands.SortGroups;
|
2020-04-16 17:16:03 +02:00
|
|
|
|
using ModernKeePass.Application.Group.Commands.UpdateGroup;
|
2020-04-02 19:12:16 +02:00
|
|
|
|
using ModernKeePass.Application.Group.Models;
|
|
|
|
|
using ModernKeePass.Application.Group.Queries.GetGroup;
|
2020-04-21 13:33:15 +02:00
|
|
|
|
using ModernKeePass.Common;
|
2020-03-26 12:25:22 +01:00
|
|
|
|
using ModernKeePass.Domain.Enums;
|
2020-05-04 12:48:27 +02:00
|
|
|
|
using ModernKeePass.Domain.Exceptions;
|
2020-04-21 13:33:15 +02:00
|
|
|
|
using ModernKeePass.Models;
|
2017-09-12 18:20:32 +02:00
|
|
|
|
|
|
|
|
|
namespace ModernKeePass.ViewModels
|
|
|
|
|
{
|
2020-05-04 12:48:27 +02:00
|
|
|
|
public class GroupDetailVm : ViewModelBase
|
2017-09-12 18:20:32 +02:00
|
|
|
|
{
|
2020-04-25 22:03:47 +02:00
|
|
|
|
public ObservableCollection<EntryVm> Entries { get; private set; }
|
2017-12-04 18:07:03 +01:00
|
|
|
|
|
2020-04-25 22:03:47 +02:00
|
|
|
|
public ObservableCollection<GroupVm> Groups { get; private set; }
|
2020-04-15 12:02:30 +02:00
|
|
|
|
|
2020-04-14 13:44:07 +02:00
|
|
|
|
public bool IsNotRoot => Database.RootGroupId != _group.Id;
|
2020-04-16 17:16:03 +02:00
|
|
|
|
|
2020-04-02 19:12:16 +02:00
|
|
|
|
public IOrderedEnumerable<IGrouping<char, EntryVm>> EntriesZoomedOut => from e in Entries
|
2020-05-13 18:59:26 +02:00
|
|
|
|
group e by (e.Title.Value ?? string.Empty).ToUpper().FirstOrDefault() into grp
|
2017-10-30 18:34:38 +01:00
|
|
|
|
orderby grp.Key
|
|
|
|
|
select grp;
|
|
|
|
|
|
2020-03-30 19:43:04 +02:00
|
|
|
|
public string Id => _group.Id;
|
|
|
|
|
|
2020-03-27 13:27:29 +01:00
|
|
|
|
public string Title
|
2017-10-06 14:56:16 +02:00
|
|
|
|
{
|
2020-03-30 19:43:04 +02:00
|
|
|
|
get { return _group.Title; }
|
2020-04-16 19:43:17 +02:00
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
_mediator.Send(new UpdateGroupCommand {Group = _group, Title = value, Icon = _group.Icon}).Wait();
|
2020-04-20 20:02:43 +02:00
|
|
|
|
SaveCommand.RaiseCanExecuteChanged();
|
2020-04-16 19:43:17 +02:00
|
|
|
|
}
|
2017-10-06 14:56:16 +02:00
|
|
|
|
}
|
2017-10-06 16:21:12 -04:00
|
|
|
|
|
2020-03-30 19:43:04 +02:00
|
|
|
|
public Symbol Icon
|
2017-09-15 15:58:51 +02:00
|
|
|
|
{
|
2020-04-14 17:49:29 +02:00
|
|
|
|
get { return (Symbol) Enum.Parse(typeof(Symbol), _group.Icon.ToString()); }
|
2020-04-16 19:43:17 +02:00
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
_mediator.Send(new UpdateGroupCommand { Group = _group, Title = _group.Title, Icon = (Icon)Enum.Parse(typeof(Icon), value.ToString()) }).Wait();
|
2020-04-20 20:02:43 +02:00
|
|
|
|
SaveCommand.RaiseCanExecuteChanged();
|
2020-04-16 19:43:17 +02:00
|
|
|
|
}
|
2017-09-15 15:58:51 +02:00
|
|
|
|
}
|
2017-10-25 18:29:50 +02:00
|
|
|
|
|
2017-10-06 14:56:16 +02:00
|
|
|
|
public bool IsEditMode
|
|
|
|
|
{
|
|
|
|
|
get { return _isEditMode; }
|
2018-08-02 17:40:30 +02:00
|
|
|
|
set
|
|
|
|
|
{
|
2020-04-22 16:21:47 +02:00
|
|
|
|
Set(() => IsEditMode, ref _isEditMode, value);
|
2020-04-20 20:02:43 +02:00
|
|
|
|
SortEntriesCommand.RaiseCanExecuteChanged();
|
|
|
|
|
SortGroupsCommand.RaiseCanExecuteChanged();
|
2018-08-02 17:40:30 +02:00
|
|
|
|
}
|
2017-10-06 14:56:16 +02:00
|
|
|
|
}
|
|
|
|
|
|
2020-04-28 18:54:37 +02:00
|
|
|
|
public string ParentGroupName => _parent?.Title;
|
|
|
|
|
|
2020-04-21 13:33:15 +02:00
|
|
|
|
public bool IsRecycleOnDelete => Database.IsRecycleBinEnabled && !IsInRecycleBin;
|
|
|
|
|
|
|
|
|
|
public bool IsInRecycleBin => _parent != null && _parent.Id == Database.RecycleBinId;
|
2020-04-28 18:54:37 +02:00
|
|
|
|
|
2020-04-20 20:02:43 +02:00
|
|
|
|
public RelayCommand SaveCommand { get; }
|
|
|
|
|
public RelayCommand SortEntriesCommand { get; }
|
|
|
|
|
public RelayCommand SortGroupsCommand { get; }
|
2020-04-28 15:20:47 +02:00
|
|
|
|
public RelayCommand<string> MoveCommand { get; }
|
2020-04-21 13:33:15 +02:00
|
|
|
|
public RelayCommand CreateEntryCommand { get; }
|
2020-05-05 15:27:34 +02:00
|
|
|
|
public RelayCommand<string> CreateGroupCommand { get; }
|
2020-04-21 19:12:26 +02:00
|
|
|
|
public RelayCommand DeleteCommand { get; set; }
|
|
|
|
|
public RelayCommand GoBackCommand { get; set; }
|
2020-04-28 18:54:37 +02:00
|
|
|
|
public RelayCommand GoToParentCommand { get; set; }
|
2020-04-14 13:44:07 +02:00
|
|
|
|
|
|
|
|
|
private DatabaseVm Database => _mediator.Send(new GetDatabaseQuery()).GetAwaiter().GetResult();
|
2020-04-28 18:54:37 +02:00
|
|
|
|
|
2020-03-26 12:25:22 +01:00
|
|
|
|
private readonly IMediator _mediator;
|
2020-04-21 19:12:26 +02:00
|
|
|
|
private readonly IResourceProxy _resource;
|
2020-04-21 13:33:15 +02:00
|
|
|
|
private readonly INavigationService _navigation;
|
2020-04-21 19:12:26 +02:00
|
|
|
|
private readonly IDialogService _dialog;
|
2020-04-23 19:00:38 +02:00
|
|
|
|
private readonly INotificationService _notification;
|
2020-04-25 22:03:47 +02:00
|
|
|
|
private GroupVm _group;
|
|
|
|
|
private GroupVm _parent;
|
2017-10-06 14:56:16 +02:00
|
|
|
|
private bool _isEditMode;
|
2020-04-02 19:12:16 +02:00
|
|
|
|
private EntryVm _reorderedEntry;
|
2020-05-11 19:22:41 +02:00
|
|
|
|
private GroupVm _reorderedGroup;
|
|
|
|
|
|
2020-04-25 22:03:47 +02:00
|
|
|
|
public GroupDetailVm(IMediator mediator, IResourceProxy resource, INavigationService navigation, IDialogService dialog, INotificationService notification)
|
2017-09-13 18:37:44 +02:00
|
|
|
|
{
|
2020-03-26 12:25:22 +01:00
|
|
|
|
_mediator = mediator;
|
2020-04-21 19:12:26 +02:00
|
|
|
|
_resource = resource;
|
2020-04-21 13:33:15 +02:00
|
|
|
|
_navigation = navigation;
|
2020-04-21 19:12:26 +02:00
|
|
|
|
_dialog = dialog;
|
2020-04-23 19:00:38 +02:00
|
|
|
|
_notification = notification;
|
2017-10-30 18:34:38 +01:00
|
|
|
|
|
2020-04-14 13:44:07 +02:00
|
|
|
|
SaveCommand = new RelayCommand(async () => await SaveChanges(), () => Database.IsDirty);
|
|
|
|
|
SortEntriesCommand = new RelayCommand(async () => await SortEntriesAsync(), () => IsEditMode);
|
|
|
|
|
SortGroupsCommand = new RelayCommand(async () => await SortGroupsAsync(), () => IsEditMode);
|
2020-04-28 15:20:47 +02:00
|
|
|
|
MoveCommand = new RelayCommand<string>(async destination => await Move(destination), destination => IsNotRoot && !string.IsNullOrEmpty(destination) && destination != Id);
|
2020-04-21 13:39:53 +02:00
|
|
|
|
CreateEntryCommand = new RelayCommand(async () => await AddNewEntry(), () => !IsInRecycleBin && Database.RecycleBinId != Id);
|
2020-05-05 15:27:34 +02:00
|
|
|
|
CreateGroupCommand = new RelayCommand<string>(async newGroupName => await AddNewGroup(newGroupName), _ => !IsInRecycleBin && Database.RecycleBinId != Id);
|
2020-04-28 15:20:47 +02:00
|
|
|
|
DeleteCommand = new RelayCommand(async () => await AskForDelete(),() => IsNotRoot);
|
2020-04-21 19:12:26 +02:00
|
|
|
|
GoBackCommand = new RelayCommand(() => _navigation.GoBack());
|
2020-04-28 18:54:37 +02:00
|
|
|
|
GoToParentCommand= new RelayCommand(() => GoToGroup(_parent.Id), () => _parent != null);
|
2020-05-04 14:29:52 +02:00
|
|
|
|
|
|
|
|
|
MessengerInstance.Register<DatabaseSavedMessage>(this, _ => SaveCommand.RaiseCanExecuteChanged());
|
2017-09-13 18:37:44 +02:00
|
|
|
|
}
|
2020-04-21 19:12:26 +02:00
|
|
|
|
|
2020-04-25 22:03:47 +02:00
|
|
|
|
public async Task Initialize(string groupId)
|
2020-04-21 19:12:26 +02:00
|
|
|
|
{
|
2020-04-25 22:03:47 +02:00
|
|
|
|
_group = await _mediator.Send(new GetGroupQuery { Id = groupId });
|
|
|
|
|
if (!string.IsNullOrEmpty(_group.ParentGroupId))
|
2020-04-23 19:00:38 +02:00
|
|
|
|
{
|
2020-04-25 22:03:47 +02:00
|
|
|
|
_parent = await _mediator.Send(new GetGroupQuery { Id = _group.ParentGroupId });
|
2020-04-23 19:00:38 +02:00
|
|
|
|
}
|
2020-04-21 19:12:26 +02:00
|
|
|
|
|
2020-04-25 22:03:47 +02:00
|
|
|
|
Entries = new ObservableCollection<EntryVm>(_group.Entries);
|
|
|
|
|
Entries.CollectionChanged += Entries_CollectionChanged;
|
|
|
|
|
Groups = new ObservableCollection<GroupVm>(_group.SubGroups);
|
2020-05-11 19:22:41 +02:00
|
|
|
|
Groups.CollectionChanged += Groups_CollectionChanged;
|
2020-04-25 22:03:47 +02:00
|
|
|
|
}
|
2020-04-27 11:14:29 +02:00
|
|
|
|
|
|
|
|
|
public void GoToEntry(string entryId, bool isNew = false)
|
|
|
|
|
{
|
|
|
|
|
_navigation.NavigateTo(Constants.Navigation.EntryPage, new NavigationItem
|
|
|
|
|
{
|
|
|
|
|
Id = entryId,
|
|
|
|
|
IsNew = isNew
|
|
|
|
|
});
|
|
|
|
|
}
|
2020-04-28 18:54:37 +02:00
|
|
|
|
public void GoToGroup(string groupId, bool isNew = false)
|
2020-04-14 13:44:07 +02:00
|
|
|
|
{
|
2020-04-21 13:33:15 +02:00
|
|
|
|
_navigation.NavigateTo(Constants.Navigation.GroupPage, new NavigationItem
|
|
|
|
|
{
|
2020-04-28 18:54:37 +02:00
|
|
|
|
Id = groupId,
|
2020-04-27 11:14:29 +02:00
|
|
|
|
IsNew = isNew
|
2020-04-21 13:33:15 +02:00
|
|
|
|
});
|
2020-04-14 13:44:07 +02:00
|
|
|
|
}
|
|
|
|
|
|
2020-04-27 11:14:29 +02:00
|
|
|
|
public async Task AddNewGroup(string name = "")
|
|
|
|
|
{
|
|
|
|
|
var group = await _mediator.Send(new CreateGroupCommand {Name = name, ParentGroup = _group});
|
2020-05-05 15:27:34 +02:00
|
|
|
|
Groups.Add(group);
|
2020-04-27 11:14:29 +02:00
|
|
|
|
}
|
|
|
|
|
|
2020-04-21 13:33:15 +02:00
|
|
|
|
public async Task AddNewEntry()
|
2020-04-14 13:44:07 +02:00
|
|
|
|
{
|
2020-04-21 13:33:15 +02:00
|
|
|
|
var entry = await _mediator.Send(new CreateEntryCommand { ParentGroup = _group });
|
2020-04-27 11:14:29 +02:00
|
|
|
|
GoToEntry(entry.Id, true);
|
2020-04-14 13:44:07 +02:00
|
|
|
|
}
|
|
|
|
|
|
2020-04-28 15:20:47 +02:00
|
|
|
|
public async Task Move(string destinationId)
|
2020-04-14 13:44:07 +02:00
|
|
|
|
{
|
2020-04-28 15:20:47 +02:00
|
|
|
|
await _mediator.Send(new AddGroupCommand {ParentGroupId = destinationId, GroupId = Id });
|
|
|
|
|
await _mediator.Send(new RemoveGroupCommand {ParentGroupId = _parent.Id, GroupId = Id });
|
2020-04-28 18:54:37 +02:00
|
|
|
|
GoToGroup(destinationId);
|
2020-04-14 13:44:07 +02:00
|
|
|
|
}
|
2020-05-04 20:56:19 +02:00
|
|
|
|
|
2020-04-14 13:44:07 +02:00
|
|
|
|
private async Task SaveChanges()
|
|
|
|
|
{
|
2020-05-04 12:48:27 +02:00
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
await _mediator.Send(new SaveDatabaseCommand());
|
|
|
|
|
}
|
|
|
|
|
catch (SaveException e)
|
|
|
|
|
{
|
|
|
|
|
MessengerInstance.Send(new SaveErrorMessage { Message = e.Message });
|
|
|
|
|
}
|
2020-04-20 20:02:43 +02:00
|
|
|
|
SaveCommand.RaiseCanExecuteChanged();
|
2020-04-14 13:44:07 +02:00
|
|
|
|
}
|
|
|
|
|
|
2020-03-27 13:27:29 +01:00
|
|
|
|
private async void Entries_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
|
2017-11-28 18:53:10 +01:00
|
|
|
|
{
|
|
|
|
|
switch (e.Action)
|
|
|
|
|
{
|
|
|
|
|
case NotifyCollectionChangedAction.Remove:
|
2020-03-27 13:27:29 +01:00
|
|
|
|
var oldIndex = e.OldStartingIndex;
|
|
|
|
|
_reorderedEntry = _group.Entries[oldIndex];
|
2017-11-28 18:53:10 +01:00
|
|
|
|
break;
|
|
|
|
|
case NotifyCollectionChangedAction.Add:
|
2020-03-27 13:27:29 +01:00
|
|
|
|
if (_reorderedEntry == null)
|
|
|
|
|
{
|
2020-04-03 17:33:53 +02:00
|
|
|
|
var entry = (EntryVm) e.NewItems[0];
|
2020-04-28 15:20:47 +02:00
|
|
|
|
await _mediator.Send(new AddEntryCommand {EntryId = entry.Id, ParentGroupId = Id});
|
2020-03-27 13:27:29 +01:00
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
2020-04-09 19:43:06 +02:00
|
|
|
|
await _mediator.Send(new MoveEntryCommand {Entry = _reorderedEntry, ParentGroup = _group, Index = e.NewStartingIndex});
|
2020-03-27 13:27:29 +01:00
|
|
|
|
}
|
2017-11-28 18:53:10 +01:00
|
|
|
|
break;
|
|
|
|
|
}
|
2020-04-20 20:02:43 +02:00
|
|
|
|
SaveCommand.RaiseCanExecuteChanged();
|
2017-10-18 10:32:51 +02:00
|
|
|
|
}
|
2018-06-20 18:41:56 +02:00
|
|
|
|
|
2020-05-11 19:22:41 +02:00
|
|
|
|
private async void Groups_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
switch (e.Action)
|
|
|
|
|
{
|
|
|
|
|
case NotifyCollectionChangedAction.Remove:
|
|
|
|
|
var oldIndex = e.OldStartingIndex;
|
|
|
|
|
_reorderedGroup = _group.SubGroups[oldIndex];
|
|
|
|
|
break;
|
|
|
|
|
case NotifyCollectionChangedAction.Add:
|
|
|
|
|
if (_reorderedGroup == null)
|
|
|
|
|
{
|
|
|
|
|
var group = (GroupVm)e.NewItems[0];
|
|
|
|
|
await _mediator.Send(new AddGroupCommand() { GroupId = group.Id, ParentGroupId = Id });
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
await _mediator.Send(new MoveGroupCommand { Group = _reorderedGroup, ParentGroup = _group, Index = e.NewStartingIndex });
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
SaveCommand.RaiseCanExecuteChanged();
|
|
|
|
|
}
|
|
|
|
|
|
2018-06-20 18:41:56 +02:00
|
|
|
|
private async Task SortEntriesAsync()
|
2017-11-28 18:53:10 +01:00
|
|
|
|
{
|
2020-03-27 13:27:29 +01:00
|
|
|
|
await _mediator.Send(new SortEntriesCommand {Group = _group});
|
2020-04-28 18:54:37 +02:00
|
|
|
|
Entries = new ObservableCollection<EntryVm>(_group.Entries);
|
|
|
|
|
Entries.CollectionChanged += Entries_CollectionChanged;
|
2020-04-22 16:21:47 +02:00
|
|
|
|
RaisePropertyChanged(nameof(Entries));
|
2020-04-20 20:02:43 +02:00
|
|
|
|
SaveCommand.RaiseCanExecuteChanged();
|
2017-11-30 11:05:47 +01:00
|
|
|
|
}
|
2018-06-04 18:38:48 +02:00
|
|
|
|
|
2018-06-20 18:41:56 +02:00
|
|
|
|
private async Task SortGroupsAsync()
|
2017-11-30 11:05:47 +01:00
|
|
|
|
{
|
2020-03-27 13:27:29 +01:00
|
|
|
|
await _mediator.Send(new SortGroupsCommand {Group = _group});
|
2020-04-28 18:54:37 +02:00
|
|
|
|
Groups = new ObservableCollection<GroupVm>(_group.SubGroups);
|
2020-04-22 16:21:47 +02:00
|
|
|
|
RaisePropertyChanged(nameof(Groups));
|
2020-04-20 20:02:43 +02:00
|
|
|
|
SaveCommand.RaiseCanExecuteChanged();
|
2017-11-28 18:53:10 +01:00
|
|
|
|
}
|
2020-04-23 19:00:38 +02:00
|
|
|
|
|
2020-04-25 22:03:47 +02:00
|
|
|
|
private async Task AskForDelete()
|
|
|
|
|
{
|
|
|
|
|
if (IsRecycleOnDelete)
|
|
|
|
|
{
|
|
|
|
|
await Delete();
|
2020-05-14 13:32:44 +02:00
|
|
|
|
_notification.Show(_resource.GetResourceValue("EntityDeleting"), string.Format(_resource.GetResourceValue("GroupRecycled"), Title));
|
2020-04-25 22:03:47 +02:00
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
2020-05-14 13:32:44 +02:00
|
|
|
|
await _dialog.ShowMessage(
|
|
|
|
|
string.Format(_resource.GetResourceValue("GroupDeletingConfirmation"), Title),
|
|
|
|
|
_resource.GetResourceValue("EntityDeleting"),
|
2020-04-25 22:03:47 +02:00
|
|
|
|
_resource.GetResourceValue("EntityDeleteActionButton"),
|
|
|
|
|
_resource.GetResourceValue("EntityDeleteCancelButton"),
|
|
|
|
|
async isOk =>
|
|
|
|
|
{
|
|
|
|
|
if (isOk) await Delete();
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2020-04-23 19:00:38 +02:00
|
|
|
|
private async Task Delete()
|
|
|
|
|
{
|
|
|
|
|
await _mediator.Send(new DeleteGroupCommand
|
|
|
|
|
{
|
|
|
|
|
GroupId = _group.Id,
|
|
|
|
|
ParentGroupId = _group.ParentGroupId,
|
|
|
|
|
RecycleBinName = _resource.GetResourceValue("RecycleBinTitle")
|
|
|
|
|
});
|
|
|
|
|
_navigation.GoBack();
|
|
|
|
|
}
|
2017-09-12 18:20:32 +02:00
|
|
|
|
}
|
|
|
|
|
}
|