コード例 #1
0
        private void AddPlaylistImpl()
        {
            //// TODO Add Playlist-Name Dialog

            var playlist = new LocalPlaylistModel();

            playlist.Name = "PlaylistName";

            var result = _service.Save(playlist);

            if (!result.IsSuccess)
            {
                return;
            }

            var model = ViewModelResolver.Resolve <PlaylistViewModel>(result.Data);

            LocalPlaylists.Add(model);
            CurrentPlaylist = model;
        }
コード例 #2
0
 private void CancelEditModeImpl()
 {
     IsInEditMode = false;
     _service.Save(Model);
 }