Exemplo n.º 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 VirtualAlbumFileViewModel(VirtualAlbumFile albumFile) : base()
 {
     AlbumFile      = albumFile;
     IsNameReadOnly = true;
 }