Beispiel #1
0
        private async Task NewAlbumAsync()
        {
            IOpenFolderDialog dialog = Mvx.IoCProvider.Resolve <IFileDialogService>().GetOpenFolderDialog();

            if ((bool)dialog.ShowDialog())
            {
                var album = await Album.FromBasePathAsync(dialog.SelectedPath, _profile.KeyHash);

                var albumFile = new VirtualAlbumFile(album, RootFolder);
                RootFolder.AddChild(albumFile);
            }
        }
 public ShellViewModel(IOpenFolderDialog openFolderDialog)
 {
     this.openFolderDialog = openFolderDialog;
 }