示例#1
0
        private void btnSave_Click(object sender, RoutedEventArgs e)
        {
            _viewModel.Playlist.Title = tbkPlaylistTitle.Text;
            _viewModel.Playlist.Descr = tbkPlaylistDescr.Text;

            _viewModel.Playlist.Looping = PlaylistHelper.GetLoopingState((string)cbxLoopingState.SelectedItem);

            _viewModel.Playlist.SinglePlaybackDuration = tbxSinglePlayDurationTime.Text;
            _viewModel.Playlist.SinglePlaybackInterval = tbxSinglePlayIntervalTime.Text;
            _viewModel.Playlist.StopPlaybackDuration   = tbxTotalPlayDurationTime.Text;

            PlaylistHelper.SaveOptions(_viewModel.Playlist, _lastRecord.Playlist);
            Snackbar.MessageQueue.Enqueue(InternalResources.PlaylistSaved);

            btnSave.IsEnabled = false;
        }