示例#1
0
        /// <summary>
        ///     Updates the shuffler details.
        /// </summary>
        private void UpdateShufflerDetails()
        {
            var selectedTrack = GetSelectedTrack();

            if (selectedTrack == null)
            {
                return;
            }

            var form = new FrmShufflerDetails
            {
                BassPlayer = BassPlayer,
                Filename   = selectedTrack.Filename
            };

            var result = form.ShowDialog();

            if (result != DialogResult.OK)
            {
                return;
            }
            Library.LoadTrack(selectedTrack.Filename);
            BassPlayer.ReloadTrack(selectedTrack.Filename);
            BindData();
        }
        /// <summary>
        /// Updates the shuffler details.
        /// </summary>
        private void UpdateShufflerDetails()
        {
            if (GetSelectedTrack() == null) return;

            var form = new FrmShufflerDetails();
            form.BassPlayer = BassPlayer;
            form.Filename = GetSelectedTrack().Filename;

            var result = form.ShowDialog();
            if (result == DialogResult.OK)
            {
                Library.LoadTrack(GetSelectedTrack().Filename);
                BassPlayer.ReloadTrack(GetSelectedTrack().Filename);
                BindData();
            }
        }