Пример #1
0
        private void PlaylistSelectHandler(object sender, EventArgs e)
        {
            UI.PlayListMenu <PlaylistItemModel> pm = (UI.PlayListMenu <PlaylistItemModel>)sender;

            player.LoadTrack(pm.GetSelection().Path);

            pm.GetSelection().Duration = (player.GetLength() > 359999) ? 0 : player.GetLength();

            pm.GetSelection().Name = player.GetName();
        }