Пример #1
0
        private async void BtnFindRelated_Click(object sender, RoutedEventArgs e)
        {
            var sid = Player.CurrentSong?.Sid;

            if (sid != null)
            {
                var window = new FindRelatedWindow(sid)
                {
                    Owner = this
                };
                window.ShowDialog();
                if (window.Channel != null)
                {
                    await Player.ChangeChannel(window.Channel, ChangeChannelCommandType.PlayRelatedSongs);
                }
            }
        }
 private async void BtnFindRelated_Click(object sender, RoutedEventArgs e)
 {
     var sid = Player.CurrentSong?.Sid;
     if (sid != null)
     {
         var window = new FindRelatedWindow(sid) { Owner = this };
         window.ShowDialog();
         if (window.Channel != null)
         {
             await Player.ChangeChannel(window.Channel, ChangeChannelCommandType.PlayRelatedSongs);
         }
     }
 }